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
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
-
Should we set up redirects for all deleted TAGS?
We recently found our site had 65,000 tags (yes 65K). In an effort to consolidate these we've started deleting them. MOZ is now reporting a heap of 404 errors for tag pages. These tag pages should not have links to them so not sure how come they're being crawled. Any suggestions from experience in this area would be useful.
Technical SEO | | wearehappymedia0 -
Regarding Redirect chain
**Old site urls:- **http://www.giftalove.com/birthday-gifts-5.html **New site urls:- **https://www.giftalove.com/birthday **Old site urls:- **http://rakhi.giftalove.com **New site urls:-**https://www.giftalove.com/rakhi My old site url redirect to new site url but show redirect chain issue. My site redirect A to B to C. Kindly find attached image and guide me what is the best way of redirection. Thanks & Regards Dilip Kumar boxgEpd
Technical SEO | | Packersmove0 -
How to avoid a redirect chain?
Hi there, I am aware that it is not good practice to have a redirect chain but I am not really sure hoe to do it (on Apache). I have multiple redirects in a chain because on the one hand I had to redirect because the content of the site got a new URL and because on the other hand I changed from http to https. Thus I have a chain like http://example.com via 301 to http://the-best-example.com via 301 to https://the-best-example.com via 301 to https://greatest-example.com Obviously I want to clean this up without loosing any link juice or visitors who had bookmarked my site. So, I could make three separate redirects: http://example.com via 301 to https://greatest-example.com
Technical SEO | | netzkern_AG
http://the-best-example.com via 301 to https://greatest-example.com
https://the-best-example.com via 301 to https://greatest-example.com But is there a way to combine it? Can I use an "OR" operator to link the 3 conditions to this one rule? Any other suggestions? Thanks a lot!!!0 -
Http:// to https:// 301 or 302 redirect
I've read over the Q & A in the Community, but am wondering the reasoning behind this issue. I know - 301's are permanent and pass links, and 302s are temporary (due to cache) and don't pass links. But, I've run across two sites now that 302 redirect http:// to https://. Is there a valid reason behind this? From my POV and research, the redirect should 301 if it's permanent, but is there a larger issue I am missing?
Technical SEO | | FOTF_DigitalMarketing1 -
Redirect to get better ranking
I have three pages of my website ranking for a keyword: landing page and two blogposts. They all rank on top of page 2 (positions 11-13).If I redirect these articles to the landing page, will it help to bring it up in rankings?
Technical SEO | | imoney0 -
Redirecting broken incoming links
I have a number of 404s happening on my site due to other websites incorrectly linking to my content. Perhaps they typed the word wrong, or their software did. Here are some examples from webmaster tools: learn/ingredie.. shop/accessories_and_extras/professional.. lore/idx.php.. learn/step_by_step_instruc shop/prod shop/product lore/email_ As you can see, none of those are actual pages - but truncated URLs of actual pages. Should I find a way to redirect these pages - or let them 404? Thanks!
Technical SEO | | dreadmichael0 -
Best Personna Strategy
I'm building a site for a manufacturer where all products will be entered as blog posts. Then I have to build some awareness for the site. What personna am I best off doing this with? Company Name, My Name, A ficticious name that works for the company, or some other? Any Mozzers want to share thoughts or past strategies that have been successful?
Technical SEO | | waynekolenchuk0 -
Site Change of Address - best method?
When changing domains, there's the obvious anxiety about sacrificing the value of your old domain. A client recently changed domains, immediately killed the old site (did everything properly with 301s, Webmaster Tools etc etc etc) and lost rankings completely for weeks. Turns out the site had been 'burnt' by the previous owner and it took a reconsideration request from Google before things recovered. Cost them rankings and cash with extra PPC spend. My question is: In order to avoid this potential hazard, what are your thoughts on submitting a change of address in Webmaster tools, but then leaving old site live for a few weeks to see how things pan out? I have never tried it and it seems to go against the grain, but interested to hear other people's experiences and how they have managed to change domain with minimal temporary damage. Thanks.
Technical SEO | | RiceMedia0