The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Best method of redirecting http to https on homepage

    Best method of redirecting http to https on homepage

    Technical SEO Issues
    7 3 1.0k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PeterAlexLeigh
      PeterAlexLeigh last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Naghirniac
        Naghirniac last edited by

        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

        PeterAlexLeigh 1 Reply Last reply Reply Quote 0
        • PeterAlexLeigh
          PeterAlexLeigh @Naghirniac last edited by

          Naghirniac - thanks for your answer.

          Granted, but which is the best for SEO?

          I'm thinking, surely I can just do a simple 301?

          Naghirniac 1 Reply Last reply Reply Quote 0
          • Naghirniac
            Naghirniac @PeterAlexLeigh last edited by

            For SEO the 301 is the best and simple solution

            1 Reply Last reply Reply Quote 1
            • Dr-Pete
              Dr-Pete last edited by

              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.

              PeterAlexLeigh 1 Reply Last reply Reply Quote 1
              • PeterAlexLeigh
                PeterAlexLeigh @Dr-Pete last edited by

                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

                Dr-Pete 1 Reply Last reply Reply Quote 0
                • Dr-Pete
                  Dr-Pete @PeterAlexLeigh last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Redirect to http to https - Pros and Cons
                    FreddyKgapza
                    FreddyKgapza
                    1
                    9
                    259

                  • Our site recently switched from http to https. Do I still need to setup a redirect for the incoming links pointing to http?
                    Andy.Drinkwater
                    Andy.Drinkwater
                    0
                    5
                    81

                  • Proper 301 redirect code for http to https
                    TimHolmes
                    TimHolmes
                    0
                    2
                    23.4k

                  • 301 Redirecting http to https
                    Heydarian
                    Heydarian
                    0
                    3
                    663

                  • Do you still loose 15% of value of inbound links when you redirect your site from http to https (so all inbound links to http are being redirected to https version)?
                    LoganRay
                    LoganRay
                    0
                    5
                    74

                  • How to change 302 redirect from http to https
                    davedon
                    davedon
                    0
                    4
                    2.1k

                  • Responsive web design has a crawl error of redirecting to HTTP instead of HTTPS ? is this because of the new update of google that appreciates the HTTPs more?
                    donford
                    donford
                    0
                    2
                    129

                  • Proper method of consolidating https to http?
                    StreamlineMetrics
                    StreamlineMetrics
                    0
                    2
                    1.8k

                  Get started with Moz Pro!

                  Unlock the power of advanced SEO tools and data-driven insights.

                  Start my free trial
                  Products
                  • Moz Pro
                  • Moz Local
                  • Moz API
                  • Moz Data
                  • STAT
                  • Product Updates
                  Moz Solutions
                  • SMB Solutions
                  • Agency Solutions
                  • Enterprise Solutions
                  • Digital Marketers
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority Checker
                  • Local Citation Checker
                  • MozBar Extension
                  • MozCast
                  Resources
                  • Blog
                  • SEO Learning Center
                  • Help Hub
                  • Beginner's Guide to SEO
                  • How-to Guides
                  • Moz Academy
                  • API Docs
                  About Moz
                  • About
                  • Team
                  • Careers
                  • Contact
                  Why Moz
                  • Case Studies
                  • Testimonials
                  Get Involved
                  • Become an Affiliate
                  • MozCon
                  • Webinars
                  • Practical Marketer Series
                  • MozPod
                  Connect with us

                  Contact the Help team

                  Join our newsletter
                  Moz logo
                  © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                  • Accessibility
                  • Terms of Use
                  • Privacy