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. Sitemap issue? 404's & 500's are regenerating?

    Sitemap issue? 404's & 500's are regenerating?

    Technical SEO Issues
    5 2 263
    • 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.
    • JanetJ
      JanetJ last edited by

      I am using the WordPress SEO plugin by Yoast to generate a sitemap on http://www.atozqualityfencing.com. Last month, I had an associate create redirects for over 200 404 errors. She did this via the .htaccess file. Today, there are the same amount of 404s along with a number of 503 errors. This new Wordpress website was constructed on a subdirectory and made live by simply entering some code into the .htaccess file in order to direct browsers to the content we wanted live. In other words, the content actually resides in a subdirectory titled "newsite" but is shown live on the main url.

      Can you tell me why we are having these 404 & 503 errors? I have no idea where to begin looking.

      1 Reply Last reply Reply Quote 0
      • jeff-rackaid.com
        jeff-rackaid.com last edited by

        A 503 error is a service unavailable error.  I have seen situations where redirects are incorrect and loop.  Depending on the hosting setup, this can trigger various HTTP error codes.

        The best way to debug this is by looking at your Apache access logs.  Scan your logs for the 503 errors. Pay attention to the URL being requested as well as the referring URL.

        Very likely, there's some looping process and in cases when Apache runs on FastCGI, you can get a 503 error due to too many processes being triggered.

        Also, due to how WP handles 404's, I've seen many plugins mask underlying causes. So if you have any plugins that impact error handling, you may need to remove those while debugging.

        You can also use http://www.redbot.org/ to check the headers for any page that should be redirected. That tool should return a Location header with a URL.  Visit that Location URL in your browser and make sure it resolves.

        The goal here is to try to replicate the behavior. Once you can replicate the behavior, dig into your redirect/rewrite rules and examine the logic to determine why you are seeing the loops or failures.

        JanetJ 1 Reply Last reply Reply Quote 2
        • JanetJ
          JanetJ @jeff-rackaid.com last edited by

          Oye, Jeff - this is a little bit over my head so bear with me as I work it through.

          I went to redbot.org and entered the url of where the main website is actually living (http://www.atozqualityfencing.com/newsite). I received this information:

          HTTP/1.1 301 Moved Permanently
              Date: Sun, 24 Aug 2014 14:56:10 GMT
              Server: Apache
              Location: [http://www.atozqualityfencing.com/newsite/](https://redbot.org/?uri=http://www.atozqualityfencing.com/newsite/&req_hdr=Referer%3Ahttp://www.atozqualityfencing.com/newsite)
              Cache-Control: max-age=3600
              Expires: Sun, 24 Aug 2014 15:56:10 GMT
              Content-Length: 326
              Keep-Alive: timeout=5, max=100
              Connection: Keep-Alive
              Content-Type: text/html; charset=iso-8859-1
          
          When I clicked on the url listed under Location above, I receive the following information:
          
          
          HTTP/1.1 404 Not Found
          Date: Sun, 24 Aug 2014 14:59:59 GMT
          Server: Apache
          X-Pingback: http://www.atozqualityfencing.com/newsite/xmlrpc.php
          Expires: Wed, 11 Jan 1984 05:00:00 GMT
          Cache-Control: no-cache, must-revalidate, max-age=0
          Pragma: no-cache
          Vary: Accept-Encoding,User-Agent
          Keep-Alive: timeout=5, max=100
          Connection: Keep-Alive
          Transfer-Encoding: chunked
          Content-Type: text/html; charset=UTF-8
          
            This has me confused and I wondering if the method used for making the revised website is either not good or is missing something. Here are the articles that were followed for "moving" the newsite redesign to the live url.
          ```
          
          [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
          
          [http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change](http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change)
          
          ```
          Can you provide any further assistance?
          
          Thanks,
          Janet
          
          ```
          jeff-rackaid.com 1 Reply Last reply Reply Quote 0
          • JanetJ
            JanetJ last edited by

            Wondering if anyone else out there has some insight as to whether the information in my previous post seems to be correct.

            1 Reply Last reply Reply Quote 0
            • jeff-rackaid.com
              jeff-rackaid.com @JanetJ last edited by

              You likely have a .htaccess issue causing a rewrite error.   You may want to examine or replace your .htaccess with a default.   Also, I've seen some plugins cause this error.

              What is happening is this:

              http://www.atozqualityfencing.com/newsite

              is sent to:

              http://www.atozqualityfencing.com/newsite/

              Note the trailing slash.

              But that page is returning a 404 error.

              If I go to

              http://www.atozqualityfencing.com/newsite/index.php it redirects to

              http://www.atozqualityfencing.com/newsite/

              So there is likely something wrong in the redirect rules.   I would try disabling all plugins. If that fails, compare the current htaccess to a default one and remove any modifications.

              .

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • If I'm using a compressed sitemap (sitemap.xml.gz) that's the URL that gets submitted to webmaster tools, correct?
                ThompsonPaul
                ThompsonPaul
                0
                6
                1.8k

              • What's Moz's Strategy behind their blog main categories?
                Cyrus-Shepard
                Cyrus-Shepard
                0
                8
                279

              • Pro's & contra's: http vs https
                max.favilli
                max.favilli
                0
                9
                377

              • Sitemap issue - Tons of 404 errors
                JanetJ
                JanetJ
                0
                7
                140

              • What's the best way to handle Overly Dynamic Url's?
                GKLA
                GKLA
                0
                2
                309

              • Should I worry about these 404's?
                RobertFisher
                RobertFisher
                1
                6
                248

              • What's the issue?
                jasarrow
                jasarrow
                0
                5
                402

              • Website's stability and it's affect on SEO
                AlanMosley
                AlanMosley
                0
                2
                1.0k

              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