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. Link Explorer
    4. Open site explorer is giving me strange redirect message.

    Open site explorer is giving me strange redirect message.

    Link Explorer
    11 2 497
    • 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.
    • donford
      donford last edited by

      Hello Again,

      Okay so it looks like what is happening is:
      the http www version is 302 to the https.www version and the https.www version is 301 to the non-www. So what you have is one redirect pointing to another redirect.

      This is likely confusing Moz, or Moz has in the past crawled a different version and has more data for that so it wants to show you it instead.

      The headers are:

      http://www.a-fotografy.co.uk/


      302 Found

      Status:    302 Found
      Code:    302
      Date:    Thu, 31 Dec 2015 12:43:08 GMT
      Server:    Apache
      X-FRAME-OPTIONS:    DENY
      X-XSS-Protection:    1; mode=block
      Location:    https://www.a-fotografy.co.uk/
      Cache-Control:    max-age=0
      Expires:    Thu, 31 Dec 2015 12:43:08 GMT
      Vary:    Accept-Encoding
      Content-Length:    214
      Keep-Alive:    timeout=10, max=200
      Content-Type:    text/html; charset=iso-8859-1
      Connection:    close

      https://www.a-fotografy.co.uk/


      301 Moved Permanently

      Status:    301 Moved Permanently
      Code:    301
      Date:    Thu, 31 Dec 2015 12:43:08 GMT
      Server:    Apache
      X-FRAME-OPTIONS:    DENY
      X-XSS-Protection:    1; mode=block
      Location:    https://a-fotografy.co.uk/
      Cache-Control:    max-age=0
      Expires:    Thu, 31 Dec 2015 12:43:08 GMT
      Vary:    Accept-Encoding
      Content-Length:    234
      Connection:    close
      Content-Type:    text/html; charset=iso-8859-1

      https://a-fotografy.co.uk/


      200 OK

      Status:    200 OK
      Code:    200
      Date:    Thu, 31 Dec 2015 12:43:08 GMT
      Server:    Apache
      X-FRAME-OPTIONS:    DENY
      X-XSS-Protection:    1; mode=block
      Accept-Ranges:    bytes
      Content-Length:    21886
      Cache-Control:    max-age=0, public
      Expires:    Thu, 31 Dec 2015 12:43:08 GMT
      Vary:    Accept-Encoding,User-Agent
      X-Powered-By:    WP Rocket/2.6.15
      Connection:    close
      Content-Type:    text/html; charset=UTF-8

      What you want to do is get all your redirects to 301 to the correct version.

      This should cover it in your .htaccess file
      EDIT 01/07/2016: Please see the below responses for corrected code.

      #If http is requested (ie https off) then redirect to https none www
        RewriteCond %{HTTPS} off
        RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
        RewriteRule ^(.
      )$ http://%1/$1 [R=301,L]
      #If https is requested (ie https on) then redirect to https none www
        RewriteCond %{HTTPS} on
        RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
        RewriteRule ^(.
      )$ https://%1/$1 [R=301,L]

      Hope this helps,

      Don

      A_Fotografy 1 Reply Last reply Reply Quote 2
      • A_Fotografy
        A_Fotografy last edited by

        Hi Don,

        Thank you for looking into this.

        So basically I need to point all links to my existing domain.

        I knew there is something weird going on.

        My old www domain used to be very good in rankings and my guess now since there is 302 all link juice is not passed onto my new domain.

        Thanks Don I will pass this info to my web developer.

        Regards,

        Armands

        donford 1 Reply Last reply Reply Quote 0
        • donford
          donford @A_Fotografy last edited by

          That is correct, 302 is a temporary redirect so it does not pass link juice the same way, and should be fixed asap.

          Glad to help,

          Don

          A_Fotografy 1 Reply Last reply Reply Quote 0
          • A_Fotografy
            A_Fotografy @donford last edited by

            Hi Don,

            My developer tried to fix this issue today, used your suggested code, but still it seems site explorer brings up the same message 😞 He is stuck and not sure what else to do.

            I don't know much about the code and he is saying that he has done everything possible.

            If you have a minute, could you have a look what is the code now?

            Thank you Don,

            Regards,

            Armands

            donford 1 Reply Last reply Reply Quote 0
            • A_Fotografy
              A_Fotografy @donford last edited by

              Hi Jo,

              We are back to drawing board.

              My developer tried to fix this issue, but with no results.

              Not sure what is wrong and why he can't fix it 😞

              According to webconfs header checker I still have 302 redirects.

              I think the web guy made things even worse as on my current domain according to same header checker I have 400 bad request coming back.

              Help please. Not sure what to do.

              Thanks,

              Regards,

              Armands

              1 Reply Last reply Reply Quote 0
              • donford
                donford @A_Fotografy last edited by

                Hello,

                Sorry for not getting back to you sooner. Weekend and all..

                Okay the problem is still there. You can check the header response codes yourself here:

                http://tools.seobook.com/server-header-checker

                The URL http://www.a-fotografy.co.uk/ 302 redirects to https://www.a-fotografy.co.uk/ which 301 redirects to https://a-fotografy.co.uk/

                There are 2 possible problems I can think of. 1 the code to redirect http://www.a-fotografy.co.uk/ is still in the htaccess file and before the code I gave you. Or 2 the host has a domain redirect in place that is executing on the server before the htaccess is read.

                For me to help you further please post the contents of your htaccess file and I'll see if there is something I can pick up on.

                Don

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

                  Thank you Don,

                  Not to worry. I think my developer is stuck now and has no idea how to fix those 302 redirects. Yesterday I noticed that there were few more coming up.

                  Around 2 month ago I changed the site. I have a feeling that something went bad during that process.

                  Now I have hundreds of 404 errors in my webmaster tools and pretty much all of them are old pages and some even from previous website before that which was 3 years ago. Not sure where it is picking up this from.

                  I also noticed that my previous websites urls making 302 redirects and they redirect from https to http urls.

                  Here is what happened when we launched new site.

                  • Changed over to new site. I still had my http address then few weeks after launch we decided that in long term it would be better to have https secure line. Then he added that https and that is where problems started.

                  Seems like old site now is picking up this https as well and doing those 302 redirects.

                  I even don't know why my old site is still being crawled and giving me errors. Weird.

                  I have passed your reply to my developer and see what he will say.

                  Thank you Don,

                  Regards,

                  Armands

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

                    Hi Armands,

                    Glad to help, as a side note if your developer can't get it sorted then you should be able to talk directly with your Hosting provider. These issues while can be complicated are somewhat common and most host have trained their help desk on how to fix them, at least from my past experiences with many different host.

                    Good luck,

                    Don

                    A_Fotografy 1 Reply Last reply Reply Quote 0
                    • donford
                      donford @A_Fotografy last edited by

                      Hi Armands,

                      Looks like I made an error in the code posted above (I did not edit the original post it so we can see the problem).

                      The 4th line:

                      RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

                      Should be

                      RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

                      Since we are redirecting to the HTTPS version.

                      The corrected code is as follows:

                      #If http is requested (ie https off) then redirect to https none www
                        RewriteCond %{HTTPS} off
                        RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
                        RewriteRule ^(.
                      )$ https://%1/$1 [R=301,L]
                      #If https is requested (ie https on) then redirect to https none www
                        RewriteCond %{HTTPS} on
                        RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
                        RewriteRule ^(.
                      )$ https://%1/$1 [R=301,L]

                      That still shouldn't change the 302 problem you have, unless this code is executed prior to whatever is causing the 302. I just noticed the error myself and wanted to give you a heads up.

                      Thanks,

                      Don

                      1 Reply Last reply Reply Quote 0
                      • A_Fotografy
                        A_Fotografy @donford last edited by

                        Hi Don,

                        I got web guy to fix the issue. Seems it should be fixed now and I should have 301 redirects.

                        Not sure why I still get that message in Open Site Explorer, but I have raised this with MOZ support.

                        Thanks Don for all your help.

                        Regards,

                        Armands

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • The New Link Explorer (which will replace Open Site Explorer) is Now in Beta
                          Smileworks_Liverpool
                          Smileworks_Liverpool
                          18
                          47
                          7.1k

                        • What do we know about Open Site Explorer?
                          DonnaDuncan
                          DonnaDuncan
                          0
                          2
                          98

                        • Link Acquisition Assistant redirect to Open Site Explorer??????
                          RyanPurkey
                          RyanPurkey
                          0
                          6
                          272

                        • Why do I not see any data in Open site Explorer for my site www.mtg-sg.com
                          jennita
                          jennita
                          0
                          2
                          243

                        • Open Site Explorer Question
                          Vizergy
                          Vizergy
                          1
                          3
                          80

                        • Open Site Explorer not reporting all 301 redirected links
                          vivekrathore
                          vivekrathore
                          0
                          2
                          303

                        • Open Site Explorer not detecting linking domain on my site
                          LesleyPaone
                          LesleyPaone
                          1
                          7
                          1.5k

                        • Open Site Explorer
                          DougRoberts
                          DougRoberts
                          0
                          3
                          273

                        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