301 Old domain with HTTPS to new domain with HTTPS
-
I am a bit boggled about https to https
we redirected olddomain.com to https://www.newdomain.com, but redirecting https://www.olddomain.com or non-www is not possible. because the certificate does not exist on a level where you are redirecting. only if I setup a new host and add a htaccess file will this work.
What should I do? just redirect the rest and hope for the best?
-
So i figured out another way. I did a 301 at the registrar level directly to the https. this ensures every version from that domain (http, https, www or non www) all go to the same URL with https without 2 or 3 redirects.
-
Hello,
Add:
# Canonical https/www
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteCond %{HTTP_HOST} ^(.*)$ [NC]
RewriteRule (.*) https://www.%1/$1 [R=301,L]To the .http access file on your web server
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Moving site to new domain without access to redirect from old to new. How can I do this with as little loss to SERP results as possible?
I've been hired to build a new site for a customer. They were duped by some shady characters at goglupe.com (If you can reach them, tell them they are rats--phone is disconnected, address is a comedy club on Mission in SF). Glupe owns the domain name and would not transfer or give FTP access prior to dropping off the face of the earth. The customer doesn't want to chase after them with lawyers, so we are moving on. New domain, new site with much of the same content as previous site. All that I have access to is the old wordpress site. I plan to build the new site, then remove all pages/posts from the old site. Is there anything I can do to salvage the current page 1 ranking? Obviously, the new domain will take some time to get back there. Just hoping to avoid any pitfalls or penalties if I can. If I had complete access, I would follow all the standard guidelines. But I don't. Any thoughts? Thanks! Chris
Intermediate & Advanced SEO | | c_estep_tcbguy0 -
I have rebuilt a website on a new domain and followed SEO protocol to maintain authority, but the results and rankings are declining.
We took over an account for a company called knightdoorservices.com who specialize in doors and windows in Edmonton, Alberta. We built them a new website on a new domain: knightdoorsandwindows.com. We did 301 redirects on all of the old URLs so that they now point to the new URLs so most of the authority should transfer over. Additionally, each page has a properly optimized title, h1 tag, a series of pertinent alt tags, and many instances of the focus keyword for that particular page. Additionally, the website loads quickly and has many high authority inbound links pointing to the domain. We have done this for many other companies and have seen their rankings maintain their position or increase. Is there something that I am missing for this company in particular? Thanks so much!
Intermediate & Advanced SEO | | Web3Marketing870 -
Can a move to a new domain (with 301's) shake off a google algorithm penalty
we have done everything under the sun using the holy grail of google guidelines to get our site back onto page 1 for our domain. we have recovered (penguin and panda) algorithm filters for keywords that were page 1 going to page 7 and now page 2. its been 2 years and we cant hit page 1 again. this is our final phase we cna think of.. do you thin kit will work if we move to a new domain. and how much traffic/rankings can we expect to lose in the short-term?
Intermediate & Advanced SEO | | Direct_Ram0 -
Client rebranded with a new website but can't migrate now defunct franchise website to new website.
Hi everyone, My client is a chain of franchised restaurants with a local domain website named after the franchise. The franchise exited the market while the client stayed and built its own brand with a separate website. The franchise website (which is extremely popular) will be shut down soon but the client will not be able to redirect the franchise website to the new website for legal reasons. What can I do to ensure that we start ranking immediately for the franchise keyphrase as soon as the franchise website is shutdown. We currently have the new website and access to the old website (which we can't redirect) Thanks, T
Intermediate & Advanced SEO | | Tarek_Lel0 -
Should we get a new domain that has our main keyword in it.
We have been running our site about 10 years under the domain www.islesurfboards.com and we are referred as "Isle Surfboards" when linked to in the anchor text. Our core product line and keyword focus has always been on "surfboards" and its related long tail keywords. However in the last several years we have began to sell "paddle boards" and now they have become our best selling product accouting for 80% of our business. We really want to rank well for "paddleboards" and related words but noticed we always seem to fall below people who have websites with "paddleboard" or "sup" in the domain and company name. will they always rank better unless we also inlcude it in ours? Should we move to a New Domain that focuses on the new target keyword "paddleboard" or a combo of both "surfboards" and "paddleboards"and would this make any difference or even hurt us since it would be a new domain. Then in addition rebrand our company name to include surfboards and/or paddleboards in the company name or some combo of both so the anchor text when people who refer to us relate to both paddle boards and surfboards?
Intermediate & Advanced SEO | | isle_surf0 -
Does using a sub-domain lessen the effectiveness of your main domain?
For example a website without a blog and is a simple html site with no blogging capabilities. We go out to Blogger or Wordpress and set up the blog portion of the website using something like blog.yourdomain.com. Does this make a difference SEO wise? Is is more effective to be sure that you are using the main domain and not a sub-domain? I have heard both sides before but can't seem to find the concrete answer. Thanks for any advise out there.
Intermediate & Advanced SEO | | d25kart0 -
Redirect non www. domain to WWW. domain for established website?
Hey guys, The website in question has been online for more than 5 years but there are still 2 versions of the website. Both versions are indexed by Google and of course, this will result in duplicate content. Is it necessary to redirect the non-www domain to the www. domain. What are the cons and advantages? Will a lot of organic traffic be lost at first (if non-www are getting a good amount of traffic)? Thanks.
Intermediate & Advanced SEO | | BruLee0 -
Pros and Cons of new subdomain and redirecting old subdomain?
Hi guys, I am thinking about redirecting the ranking subdoman to a new subdomain which has my main keyword within it. I am trying to outrank an exact match competitor and don't seem to be able to do so. For example: page.example.com would be my existing ranking URL which is very powerful, and I am thinking about redirecting this to a new URL being keywordpage.example.com What are your thoughts on do this? Thanks B
Intermediate & Advanced SEO | | HaymarketMediaGroupLtd0