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. On-Page / Site Optimization
    4. Yoast SEO sitemap link 404 problem

    Yoast SEO sitemap link 404 problem

    On-Page / Site Optimization
    7 4 220
    • 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.
    • SamCUK
      SamCUK last edited by

      I have recently moved my wordpress blog from a subdomain into a directory e.g. www.mysite.com/blog/ and installed yeast SEO however when I go to the site map as directed in the pluign panel www.mysite.com/blog/sitemap_index.xml its not there are I get a 404 error?

      Any help much appreciated.

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

        No you will not 404 for this one i have done same for the http://wallpapersak.com/

        SamCUK 1 Reply Last reply Reply Quote 0
        • SamCUK
          SamCUK @preferati last edited by

          I am getting a 404 error.

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

            You have checked the box "to enable XML sitemap functionality" ? In the Yoast SEO XML Sitemap settings.

            SamCUK 1 Reply Last reply Reply Quote 0
            • SamCUK
              SamCUK @Chris661 last edited by

              Yes this box is checked and it gives me the options then. Should it not be checked?

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

                It should be checked. I did notice my site took a little while to actually generate the sitemaps after installing Yoast.

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

                  Hello,

                  First deactivate the Sitemap functions, clear cache and then reactivate the Sitemap functions & voilá the error 404 is gone! if not, add this to the .htaccess file:

                  <ifmodule mod_rewrite.c="">RewriteEngine On
                  RewriteBase /
                  RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
                  RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]</ifmodule>

                  cheers!

                  Arnold

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Problem with internal links.
                    Lucas.Longhi
                    Lucas.Longhi
                    0
                    2
                    75

                  • Does Google Analytics' Enhanced Link Attribution cause any SEO problems?
                    Martijn_Scheijbeler
                    Martijn_Scheijbeler
                    0
                    3
                    699

                  • Yoast SEO plugin
                    SSFCU
                    SSFCU
                    0
                    5
                    131

                  • Does the link title attribute benefit seo?
                    Bio-RadAbs
                    Bio-RadAbs
                    0
                    4
                    34.9k

                  • Too many on page links in sitemap.html
                    SEOAndy
                    SEOAndy
                    0
                    4
                    1.1k

                  • Problem with Plugin: Wordpress SEO by Yoast
                    waynestock
                    waynestock
                    0
                    7
                    535

                  • Finding 404 links
                    ClickValueMedia
                    ClickValueMedia
                    0
                    5
                    768

                  • How to trace back a link from a 404 error?
                    randfish
                    randfish
                    0
                    4
                    2.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