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. Intermediate & Advanced SEO
    4. Why would our server return a 301 status code when Googlebot visits from one IP, but a 200 from a different IP?

    Why would our server return a 301 status code when Googlebot visits from one IP, but a 200 from a different IP?

    Intermediate & Advanced SEO
    16 5 1.4k
    • 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.
    • danatanseo
      danatanseo @William.Lau last edited by

      Thanks William. Good suggestion. I am on it! I'll post back here once I know more.

      1 Reply Last reply Reply Quote 0
      • danatanseo
        danatanseo @StreamlineMetrics last edited by

        According to our IT Director we have no spam filters, no mod_security module, absolutely nothing on our server to prevent it from being crawled by bot, human or spider from any IP address, including black-listed IPs.

        To me, other than the obvious (no security is probably not a good idea at all), that means that the 301 status codes being returned because of a problem with server set up.

        I do have server logs that I'd be willing to share privately with anyone who's willing to take a gander. Don't worry, I won't send you a month's worth. 1-2 days should be plenty.

        In the meantime I am going to dive in and take a look further. It's entirely possible that IPs from Google are not the only ones receiving nothing but 301 status codes in response to requests.

        1 Reply Last reply Reply Quote 0
        • danatanseo
          danatanseo @William.Lau last edited by

          Here is the response from my IT Director regarding the possibility that this is being done by our DNS manager:

          "I do not believe so. Our DNS does translation of human readable names to IP address. It has nothing to do with the status being returned to a browser, and even if it did it could not write to the log file."

          Is this accurate? I understand that the DNS cannot write to the log file, but if the DNS can flag a request to receive a certain status code from the server, then this scenario would still be a possibility.

          William.Lau 1 Reply Last reply Reply Quote 0
          • ForForce
            ForForce last edited by

            The problem can't be related to DNS.  If the problem was related to DNS, the request would never make it to your server, and you would never see anything related to the request in your log files.

            Because you can see it in your log file, it is definitely happening on your own webserver (not some external problem).

            The requesting IP is probobly not the problem, but it could be if your server automatically adds to a banned list any IP that requests > X pages in Y time - your server might think this is a DOS (denial of service) attack.... But if your server was set up to do this, your IT guys would probobly know about it.  This isn't something that is normally enabled 'out of the box' someone would need to intentionally activate a behavior like that.

            More likely, is that there is another common denominator besides the requester IP...  I would guess that it's the user agent string (the browser or device the user is using).

            Taking a quick look at what I think is your site, you have a mobile version available.  Google of course would be interested in what your site looks like to a mobile browser, and would send a 'fake' user agent string pretending to be so (a cell phone or a tablet etc...)  If your server sees this request, and tries to automatically redirect the browser to the mobile version of the site, then you would have your 301 code (which in this case is exactly what you intended, so your all set!)

            There are probably a few other cases that could cause a 301 for just some IPs, but this is the only one that comes to mind at the moment.

            Good Luck!

            danatanseo 1 Reply Last reply Reply Quote 1
            • danatanseo
              danatanseo @ForForce last edited by

              Thanks so much Eric. Yes, I was thinking about the mobile version of our site being related to what I'm seeing too. However, I am unaware that we 301 redirect anything from the main site to the mobile site. In fact, users can actually switch to the mobile site via desktop by clicking "Mobile Site" in the footer and then browse the mobile version of the site via desktop. All of the URLs are identical.

              Just out of curiosity I browsed to the mobile version of our site, grabbed a URL and then plugged it into "Fetch as Googlebot" in GWT. For all options, including desktop and the three mobile options a status code of 200 was returned.

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

                How detailed are your log files?  Can you see the user-agent (browser name) Maybe you could ask your IT department to log request headers?  If that will make the log files too big, they can probably do it only for the 'problem' IPs, or only for cases that the webserver returns a 301.  I'll take a look if you like.  Email is in my profile.

                Best,

                -Eric

                danatanseo 1 Reply Last reply Reply Quote 1
                • ForForce
                  ForForce last edited by

                  The request headers will also show if any and what cookies the user may have set.  Which it looks like is how your server determines if it should provide the client the desktop or mobile version.

                  1 Reply Last reply Reply Quote 1
                  • William.Lau
                    William.Lau @danatanseo last edited by

                    Depends what kind of DNS manager you are using. A redirect via DNS can still be possible.

                    In my experience DNS managing software can redirect users with 301 or 302 headers depending on what settings you have. If your DNS manager has a security protocol along with redirect rules, it could be causing the issue.

                    Examples of DNS redirects:

                    https://dnsimple.com/url-forwarding-301-redirect

                    https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-do-url-forwarding-with-CloudFlare-

                    ForForce 1 Reply Last reply Reply Quote 0
                    • ForForce
                      ForForce @William.Lau last edited by

                      Right, a DNS manager could do a redirect, but that would not be visible in the web server log.  It would only be visible in whatever is managing the DNS.

                      1 Reply Last reply Reply Quote 0
                      • danatanseo
                        danatanseo @ForForce last edited by

                        They are pretty detailed, I'll send you yesterday's in a zip file so you can take a look. I'm certain that have everything needed. Thanks Eric!

                        1 Reply Last reply Reply Quote 0
                        • Christy-Correll
                          Christy-Correll last edited by

                          Hi Dana, have you definitively sorted this out?

                          danatanseo 1 Reply Last reply Reply Quote 0
                          • danatanseo
                            danatanseo @Christy-Correll last edited by

                            Howdie,

                            Yes, I believe we got this sorted out. Interestingly, it wasn't any of the suggestions made here causing the 301 status code responses. I posted a thread in Google Webmaster Tools Forum regarding the issue and received a response that I am 99.5% sure is the correct answer.

                            Here is a link to that thread for future readers' reference: https://productforums.google.com/forum/#!mydiscussions/webmasters/zOCDAVudxNo

                            I believe the underlying issue has to do with incorrect handling of a redirect for this domain:  ccisound.com

                            I am currently pursuing getting it corrected with our IT Director. Once the remedy is in place, I should know right away if it solves the issue I am seeing in the server logs. I'll post back here once I am 100% certain that was the issue.

                            Thanks all! This has been an interesting one for me!

                            1 Reply Last reply Reply Quote 1
                            • 1 / 1
                            • First post
                              Last post
                            • If I have two brands and I market one in English (BrandA.com) and one in Spanish (BrandB.com), and the websites are identical but in different languages, would that have a negative impact on SEO due to duplicate content?
                              Dalerio-Consulting
                              Dalerio-Consulting
                              1
                              3
                              68

                            • Should I include URLs that are 301'd or only include 200 status URLs in my sitemap.xml?
                              Gyorgy.B
                              Gyorgy.B
                              0
                              3
                              413

                            • Different Landing Pages for Different Keywords with Same Intent or Only One?
                              max.favilli
                              max.favilli
                              0
                              5
                              2.3k

                            • Confused about SEO for Forums (Status Code 200)
                              kentien93
                              kentien93
                              0
                              3
                              156

                            • Images Returning 404 Error Codes. 301 Redirects?
                              danatanseo
                              danatanseo
                              0
                              5
                              2.6k

                            • Is a 301 to a 301 ok?
                              EcommerceSite
                              EcommerceSite
                              0
                              7
                              182

                            • Status Code 404: But why?
                              ShaMenz
                              ShaMenz
                              0
                              18
                              1.4k

                            • Canonical, 301 or code a workaround?
                              vforvinnie
                              vforvinnie
                              0
                              4
                              819

                            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