Best method of redirecting http to https on homepage
-
Hi everyone,
I'm looking to redirect all http requests to https for a site's homepage. It only needs to be for the homepage, not site wide.
What's the best method of doing this without losing pagerank or ranking?
I'm using IIS7.5 so I've been looking at a URL Rewrite or possibly this ASP.Net solution;
http://www.xdevsoftware.com/blog/post/Redirect-from-Http-to-Https-in-ASPNET.aspx
Or is a simple 301 or 302 (for some reason Microsoft's site says to do a 302 re-direct, though I'm not sure if this is great from an SEO perspective?) re-direct from http version to the https version the best method?
Also if the solution retained the URL query string that would be even better!
Any help appreciated! Thanks
-
Are you securing a lead-gen form? One thing to test first - have you done an A/B test of the in-page form vs. a large call-to-action button? I've seen testing go both ways. Sometimes, the in-page form drives more leads, but sometimes a clear call-to-action to a separate form is better (really seems to depend on the form and the industry). If the call-to-action works just as well, it would be much easier to secure the stand-along form than your home-page.
Going secure full-site would help solve some problems, although you do need full-site 301-redirects then, and you've got to make sure your servers can handle it (https: needs additional overhead). It's really tough to tell without knowing the nature/scope of the site.
I'd be happy to close the private question, but if you want to dive into details there, it might not be a bad idea. Seeing the site would really help, since this is a tricky issue.
-
Ooo, doesn't sound great.
Do you think if I was to do this it would be better to convert the whole site to HTTPS and enforce it site wide?
(I actually posted a private question on this as well hoping you'd answer it, but you've done it here! - can I close the private one??)
Thanks
-
301 is probably best here. There are two tricks here, though, and it can get messy:
(1) You'll need to link to the HTTPS version in your internal links as well.
(2) If you use relative links (like "/about.aspx"), then all the navigation links from your secure home-page will cause Google to crawl the rest of the site with HTTPS, possibly creating mass dupe content.
Practically, there's a fair amount of risk in just securing your home-page, and it goes beyond the home-page itself. I'd proceed with caution and really evaluate the pros and cons.
-
For SEO the 301 is the best and simple solution
-
Naghirniac - thanks for your answer.
Granted, but which is the best for SEO?
I'm thinking, surely I can just do a simple 301?
-
Shelly,
There are tree methods, all with their benefits and difficulties. They are: Redirect via a landing page, Redirect via a custom error and Redirect via URL manipulation.
You can take a look at this detailed post: http://www.iis-aid.com/articles/how_to_guides/three_methods_redirect_http_https
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
-
Can you keep you old HTTP xml sitemape when moving to HTTPS site wide?
Hi Mozers, I want to keep the HTTP xml sitemape live on my http site to keep track of indexation during the HTTPS migration. I'm not sure if this is doable since once our tech. team forces the redirects every http page will become https. Any ideas? Thanks
Technical SEO | | znotes0 -
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 -
Redirect Question
We have a client that just did a redesign and development and the new design didn't really match their current structure. They said they didn't want to worry about matching site structure and never put any effort into SEO. Here is the situation: They had a blog located on a subdomain such as blog.domain.com - now there blog is located like domain.com/blog They want to create redirects for all the old the blog urls that used to be on the subdomain and not point to the domain.com/blog/post-name What is the best way of doing that - Through .htaccess?
Technical SEO | | Beardo0 -
Internal links best practices
In looking at the inbound links to a client’s Home page, I see that the link from each page of the website back to the Home page is an image, and the ALT text is “Home.” I have a few questions about this, and would appreciate help understanding best practices: --Does it matter that the link back to the Home page is an image (presumably the client’s logo)? -- If we keep the image link, wouldn’t it be better to use “client’s company name” as ALT text rather than “Home”? --Should I recommend using an HTML link back to the Home page, and using the company name as anchor text? (I don't think it's relevant, but the site is built in Drupal.) Thanks!
Technical SEO | | jrae0 -
Redirects for new website
Hi Moz community,
Technical SEO | | JSimmons17
I'm a fairly new SEO Specialist with a brand new website. We initially had a very basic holding website until the fully functional website was completed. I have to do some redirects as we have both .html and .php files & we don't want to lose SEO value for specific pages (like the index, news, etc). I also want to redirect from a www url to a non-www url. I am trying to accomplish redirects with the following code: RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mywebsite.com [NC]
RewriteRule (.*) http://mywebsite.com/$1 [R=301,L] RedirectMatch 301 /index.html (.*).(php|html) http://mywebsite.com/index.php RedirectMatch 301 /cupcakes-slideshow/glutenfree-slideshow.html (.*).(php|html) http://mywebsite.com/gluten-and-glutenfree.php RedirectMatch 301 /press.html (.*).(php|html) http://mywebsite.com/news-and-reviews.php Please let me know if I am on the right track. Thanks so much in advance!0 -
Best XML Generator for Wordpress?
Hi all, Quick question - does anybody have any recommendations for the best XML sitemap plugin for Wordpress? An idea of why you like it would also be helpful. Thank you very much! Mark
Technical SEO | | markadoi840 -
Redirecting According to the occasion
We have loads of different departments that relate to specific occasions (e.g. Christmas, mothers day, father day etc), they all have good PR and inbound links etc and most of them rank well for the specific occasion. What I was thinking is that I could redirect all of the occasions that aren’t in use and send the traffic to the valid occasion live at the moment. So I would 301 all the Christmas pages to our valentine’s day main page. Then once valentines is gone I will redirect Christmas and valentines to the mothers day main page and so on. So this would be constantly switching as different occasions come along. Can you see any possible negative problems? Is there any chance that if I redirect Christmas for example, and then when Christmas comes we remove the redirect, could it harm the Christmas page?
Technical SEO | | steliosp210 -
Redirecting /default to domain ??
Google analytics shows me that this: http://www.quicklearn.com/default.aspx is my "top content page" This page doesn't redirect to my root domain: http://www.quicklearn.com IT tells me that "/default.aspx" can not redirect to my domain. I am told: "You can only redirect deeper into the site." We have had an ongoing issue with duplicate content (that we are in the process of correcting). Anyone with experience in redirecting that can help? Any advice welcome
Technical SEO | | QuickLearnTraining0