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. HTTPS & 301s

    HTTPS & 301s

    Technical SEO Issues
    4 4 157
    • 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.
    • Direct_Ram
      Direct_Ram last edited by

      Hi

      • We have like most set up a redirect from HTTP to HTTPS.
      • We also changed our website and set up redirects from .ASP pages to PHP pages
      • We are now seeing 2 redirects in place for the whole of the website.
        http.www.domain.com > https.www.domain.com (1) >> oldwebpage.asp >> new webpage.php (2)

      The question is: Is there anyway of making the redirect 1 and not 2?

      thanks
      Enver

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

        I'm not sure I understand. What is wrong with the ASP -> PHP redirect?

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

          Just to make sure I understand.  Can you clarify the sequence of the changes and for how long?  Do you know if one set of URLs has links to it or was ever indexed.

          Let me explain.

          It sounds like you had a site that was using http and was an asp site. So you had URLs like

          http://www.website.com/file.asp  (we will call this URL type A)

          You then converted to https so the URLs were like

          https://www.website.com/file.asp  (we will call this URL type B)

          You then updated to a PHP site so now with URLs are like this

          https://www.website.com/file.php (we will call this URL type C)

          You can setup 301s to go from A to B  and then another set to go from B to C.  Your question is can you setup a 301 to go from A to C, the answer is yes. You should do this.  Anytime you can reduce the number of hops the better.

          What you need to think about is, well, that about the A to B and the B to C redirects?   Well, I would say at a minimum, you need to eliminate the A to B 301s as you have now decided to skip the "B" and go right to C.  That works.  What about the B to C 301 redirect?   It depends.   If you had version B of the website out for a while, and it was indexed by Google and you have links that are built to B version URLs, then yes, you need to leave the B to C redirects.  You don't want to lose any of that equity.

          Likewise, let's say you have a version D of the site that comes out a year later.  You have lots of links into the C version of the site.

          https://www.website.com/file.html

          You then need the A urls to 301 to the D URLs (and get rid of the A to C 301s), you need the B URL to 301 to the D URLs and so on. In other words, go through another process of cleaning up the 301s and reducing the hops.

          Why do all this.  Two reasons.  There will still be links to the A, B, C versions of the site.  Google will still find them and crawl them and you want to get credit for those links to your site.  Also, Google keeps an internal log of URLs and will check them from time to time, even if no one is linking to them.  You want Google to find the right URL.    In either case, if Google hits a version A URL, it would then have to go to version B via a 301 and then to version C.  It can do it, but it would rather have 1 hop.

          Side note.  Try not to use global 301s, where you just 301 a bunch of pages to the home page.  That does nothing for you as far as link equity.  Try and make the 301s a 1 to 1 relationship as much as possible.

          Take a look at this video and this backs up what I just said.  The number of hops is discussed at about 3 min in.  The whole video is worth watching https://www.youtube.com/watch?v=r1lVPrYoBkA

          1 Reply Last reply Reply Quote 1
          • Guest
            Guest last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Changing URL structure of site, including AMP - redirect AMP too?
              1
              1
              40

            • Link to AMP VS AMP Google Cache VS Standard page?
              joramtenham
              joramtenham
              0
              2
              88

            • Switched from and HTTPS to HTTP. My home page is facing a redirect issue from the http to https. Should I no index the HTTP or find the redirect and delete it? Thank you
              LandmarkRecovery2017
              LandmarkRecovery2017
              0
              3
              42

            • Changing Domains - 301 old https to new https
              BlueprintMarketing
              BlueprintMarketing
              1
              5
              81

            • Https & http
              moon-boots
              moon-boots
              0
              14
              162

            • 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

            • HTTPS Migration & Preserving Link Equity
              GlobeRunner
              GlobeRunner
              0
              4
              521

            • I have a site that has both http:// and https:// versions indexed, e.g. https://www.homepage.com/ and http://www.homepage.com/. How do I de-index the https// versions without losing the link juice that is going to the https://homepage.com/ pages?
              fthead9
              fthead9
              0
              3
              729

            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