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
-
Launching Brand New Subdomain To Outrank & Outperform Main Domain
Fellow Mozzers! I have a tricky problem that may or may not have a viable solution. It's one that our team are 100% pressing ahead with regardless & I wanted to canvass some opinion on what options I have. We have the Main Company Site which has been going for +15 years, has a DA of 58 and 63,000 links pointing at it. It currently ranks on page 1 for a number of our important keywords. However.... We are now launching a Subdomain, which will be something like marketing.maincompanysite.com which we now want to drive a lot more of our traffic to. In particular for items like new customer acquisition, product discovery etc. In fact we would actually rather the subdomain outrank our main site for branded queries. However the Main Site is still important for existing customers who login to our product and we don't want to do anything that will destabilize it's rankings too much. My questions are: Are there any strategies I can use to get a subdomain (with no links or history) outranking the main site in position 1 on Google? Main site should still rank in position 2! Any other tips to actively take legacy traffic from a main site onto a subdomain seamlessly. Should we just be 301 redirecting unnecessary pages on the old site to new and improved pages on the subdomain? There will still be a 100,000+ pages on the main site, lots of authority and traffic going through it. It's not becoming redundant. Thanks so much guys - hopefully I've explained that okay!!
Intermediate & Advanced SEO | | MattStott40 -
Changing Domain
We have an old domain that we have had registered for many years(pinpoint;asersystems.com) and redirected to our regular domain (which is a short version of our name (pinlaser.com). Management wants to switch and use the longer version as the primary domain for branding purposes. I have cautioned against this for many reasons: Need to do 100's of redirects Potential loss of back links Most links will now be 301 redirects and not look natural to search engines. I would appreciate feedback on any and all risks associated with this potential move. Thanks.
Intermediate & Advanced SEO | | Pinlaser0 -
Is it safe to redirect our .nl (netherlands) domain that we have just purchased to our .com domain?
Hi all! We've recently developed a German version of our website with German translation and now we have just purchased a .nl domain, but with this one, we want all of the copy to remain in English. Is it ok to redirect our .nl domain to our current .com website or will this give us bad SEO points? Thank you!
Intermediate & Advanced SEO | | donaldsze0 -
301 redirects.
Hi everyone, I am having some issues with an a few dynamic URLs that are not redirecting; Example: http://www.example.com/shop-online?page=shop.product_details&flypage=flypage_images.tpl&product_id=69164&category_id=303 I first tried to carry out a standard 301 which looked like this; Redirect 301 /longurlwith&category_id=303 http://www.example.com/new-url Which didn't work. After a little bit of research I added the following into the htaccess file; RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]RewriteRule ^/shop-online$(.*)$ http://www.example.com/shop-online$ [NE,L,R=301] Which caused the website to error 500 (Not cool). So now I am stumped. Any help would be really appreciated as I'm sure it's an easy fix but I can't quite my finger on it. Thanks in advance :).
Intermediate & Advanced SEO | | AduroLabs0 -
301 redirect from one domain to other domain, How To?
Hi, I need to redirect 150 products pages from http://www.filtrationmontreal.com/ to http://www.furnacefilterscanada.com/ How can I do this? Is there a tool or anything I can do to do 301 from one domain to another one? Can I use Google Webmaster Tool? Thank you, BigBlaze
Intermediate & Advanced SEO | | BigBlaze2050 -
Is my other domain making me not rank?
Hi there, We have a .co.uk website which was ranking well for a number of highly competitive keywords, however in February 2012 those rankings for those keywords suddenly dropped off Google all together and have never came back. A few possibilties to why this has happened: We launched a .ie website which has exactly the same content, could this be the reason for the drop? I have put in all the necessary steps in making sure Google ranks these geographically correct by using hreflang and making sure everything is setup properly in webmaster tools. Why I think it could be this: If I copy and paste the first few paragraphs of text from the pages in the .co.uk website that were ranked highly in Google.co.uk it's the .ie version that appears not the .co.uk version. Here is the webpages in question: http://www.avogel.co.uk/health/menopause/ http://www.avogel.ie/health/menopause/ Forgot to mention, the reason we have these two websites is due to different currency and legalities. Hope someone can help me out with this.
Intermediate & Advanced SEO | | Paul780 -
After the 301 redirect
Hi all, A quick question, after you have setup your 301 re-directs in .htaccess - is it necessary to keep your content in the original domains directory? My thinking is that requests do get as far as referencing the directory, thus it should be safe to delete all the files on the old domain? Thanx!
Intermediate & Advanced SEO | | gazza7770 -
Brand new domain with a lot of old links.
So I just bought http://penny-auctions.co/ a couple of days ago, ignore the fact it's not set up yet and generally just a mess, and something kept bugging me about why the domain authority kept showing as 25 in the SEOmoz toolbar. Now initially I'd set it up as www. and with the trailing slash so the PA was 1, however after a bit of exploration it seems that someone has been building links to the non-www version of the domain for at least a year! The site has never been owned before so I've now made the non-www version the default and have a 5 day old site with PA 35 and DA 25! SEOmoz shows PA - 45 links, 20 domains and DA - 341 links, 113 domains. Majestic Historic - 8598 links, 236 domains and Fresh - 160 links, 62 domains. Brilliant! Except they're all spamtastic. What do you think this will do for my future attempts at ranking? Should I create pages that have links to them or just 301 them?
Intermediate & Advanced SEO | | StalkerB0