Https redirect
-
Hi there,
a client of mine is asking me if Google would penalize to redirect from all the http urls to https (they want to change the security protocol).
I assume it is going to work as a classic 301, right? so they might lose some authority in they way, but I am not 100% sure. Can anyone confirm this? does anyone has a similar experience?
thanks a lot!
-
Hi Michael,
What did you and the client end up deciding? Do you have any lessons learned or anything interesting to share? We'd love to hear it!
-
Do all the pages need to be https or just some of them? I'm not a huge fan of working with all https sites, but appreciate sometimes it's necessary.
Some things you may want to look at - http://www.seomoz.org/ugc/solving-duplicate-content-issues-with-http-and-https
As with any redirect you're losing some juice, but if it needs to be done it should just be the same as a normal redirect. This should be safe:
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]I never see many top sites using https exclusively, even paypal has it's http version in the SERPs (though redirects you to the https immediately) because nobody links to the https version. Well, not nobody, but you get what I mean, nobody immediately thinks to put that 's' in there so there's lots of links to the http version.
Both are fine to use though.
-
If the 301 redirection is correctly implemented (a 301 redirection for each single http page to the https page), this should be OK. From a theorical point of view, you may loss around ~10% of the linkjuice from existing backlinks. However, I personally never noticed a negative impact of my rankings on this kind of massive website redirection.
Here are a just few things I would recommend you pay attention to:
- Make 100% sure you correctly implement your 301 redirections.
- Once you've correctly implemented your 301 redirections, submit an XML sitemap of your old URLs (starting with standard http://) to ask Google to recrawl your old URLs and see that they have been 301-redirected to https://* URLs. This will make Google update its index more quickly.
- Also make sure your https website doesn't require resources (such as images, javascripts, css files) that are not served in https. If your HTTPS pages require resources served in HTTP, Internet Explorer will popup a warning message asking for the user if he wants to display resources which are not secured.
My two cents.
J.
-
Switching to https by using a 301 redirect will probably cause a temporary dip in traffic, but this should only be temporary.
It would make sure that you use a "rel=canonical" tag on the pages just to be clear to Google that the HTTPS version is what you want users to see.
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
-
Cant find source of redirect
Hey guys, I have a bizarre situation on my hands. I have a URL that is being wonky. The url is redirecting to another url and the 301 redirect is not in my htaccess. There is a 301 redirect in my htaccess but is being overwritten by something else, i.e. whatever is happening in above. So basically URL A should be redirecting to URL B but instead its going to URL C. I know we were not hacked, it's not redirecting to a strange bizarre domain. I have also disabled all of our plugins that redirect (to my knowledge) Any thoughts would be great!
Technical SEO | | HashtagHustler0 -
Desktop in http and mobile in https
Any experience or advice you can share of having a mix set of pages/urls in one site/domain https and http e.g. mobile in https and desktop in http , (desktop version) http://mydomain/product1 (mobile version)https://m.mydomain.com/product1 att the same time some mobile pages still in http://m.mydomain.com/sectionA/ thanks
Technical SEO | | arnoldcr0 -
New site - http or https?
Hi. We are currently in the process of creating a new website. We will be using our old domain name. However, the current website is currently live on both http and https protocols, with no re-directs in place. When we launch the new website, we would like to redirect everything to one or the other. Would the preference be to use https as the preferred protocol?
Technical SEO | | Lexica0 -
Redirect typo domains
Hi, What's the "correct" way of redirecting typo domains? DNS A record goes to the same ip address as the correct domain name Then 301 redirects for each typo domain in the .htaccess Subdomains on typo urls still redirect to www or should they redirect to the subdomain on the correct url in case the subdomain exists?
Technical SEO | | kuchenchef0 -
How best to fix 301 redirect problems
Hi all Wondering if anyone could help out with this one. Roger Bot crawler has just performed it's weekly error crawl on my site and I appear to have 18,613 temp redirect problems!! Rather, the same 1 problem 18,613 times. My site is a magento store and the errors it is giving me is due to the wishlist feature on the site. For example, it is trying to crawl links such as index.php/wishlist/index/add/product/29416/form_key/DBDSNAJOfP2YGgfW (which would normally add the item to one's wishlist). However, because Roger isn't logged into the website it means that all these requests are being sent to the login url with the page title of Please Enable Cookies. Would the best way to fix this be to enable wishlists for guests? I would rather not do that but cannot think of another way of fixing it. Any other Magento people come across this issue? Thanks, Carl
Technical SEO | | daedriccarl0 -
Https redirect when certificate expired
Hi, How do we 301 an https version of a domain to a page on another website when the security certificate has run out? We have 301 redirected the http version but IT stuck on how to do the expired https. Thanks
Technical SEO | | Houses0 -
Redirect a page intended for iframe
we built an interactive calculator that gets iframe embedded in our blog and landing pages. the blog that embeds it is doing well the problem is that the iframe source html page is also indexed by google and is on the second page of results. which we don't want as it doesn't have any context/branding/call to action/etc. if i put a noindex meta tag on the iframe html source page, will that remove the indexing of the pages that consume it in an iframe?
Technical SEO | | icstars0 -
Where does Wordpress store the 301 redirects?
Hi, I've just created a campaign for my new wordpress blog and found 11 301 redirects which I was not aware of. It looks like wordpress has created them automatically. Does any one know how wordpress handles this issues or where are they stored so I can delete them? They are of no use for me. 9 of these redirects point to the same url with an added '/' and are in pages 1 is on a post. I've been changing the permalink and some urls several times and maybe one of these times the Wordpress has automatically created the 301 redirect. But why? I do not want to keep the old url. the last redirect is very strange it goes from http://www.mydomain.com/folder to http://www.mydomain.com where folder is the folder where I installed wordpress. But again, I want no one to type the url with the folder name or even know this folder exists. Any comment on this would be greatly appreciated. Thanks a lot, David
Technical SEO | | dballari0