Support » Plugin: Yoast SEO » Sitemap Error

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support devnihil

    (@devnihil)

    @adminalvaro The 404 error you receive on your sitemap can be caused by a number of issues, including the permalinks or rewrite rules. We would first recommend to try resetting the permalink structure in WordPress which can be done by performing the following steps:

      Login to WordPress
      Go to Settings>Permalinks
      Clicking ‘Save Changes’ without making any modifications

    ​We also have additional information regarding the sitemap files creating an error here: https://kb.yoast.com/kb/my-sitemap-index-is-giving-a-404-error-what-should-i-do/

    If you continue to receive the error after resetting the permalinks, we would then also suggest adding a set of rewrite rules to your server and we have a guide on adding these for an Apache servers here: https://kb.yoast.com/kb/xml-sitemaps-apache/ and for Nginx servers here: https://kb.yoast.com/kb/xml-sitemaps-nginx/.

    ​Can you please try the aforementioned recommendation and let us know whether this resolves your issue?

    Thread Starter adminalvaro

    (@adminalvaro)

    This is my .htacces file:

    #Yoast SEO Sitemaps
    location ~ ([^/]*)sitemap(.*).x(m|s)l$ {
    ## this redirects sitemap.xml to /sitemap_index.xml
    rewrite ^/sitemap.xml$ /sitemap_index.xml permanent;
    ## this makes the XML sitemaps work
    rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 last;
    rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
    ## The following lines are optional for the premium extensions
    ## News SEO
    rewrite ^/news-sitemap.xml$ /index.php?sitemap=wpseo_news last;
    ## Local SEO
    rewrite ^/locations.kml$ /index.php?sitemap=wpseo_local_kml last;
    rewrite ^/geo-sitemap.xml$ /index.php?sitemap=wpseo_local last;
    ## Video SEO
    rewrite ^/video-sitemap.xsl$ /index.php?xsl=video last;
    }
    # BEGIN WordPress
    # Las directivas (líneas) entre BEGIN WordPress y END WordPress se generan dinámicamente
    # , y solo se deberían modificar mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores se sobreescribirán.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Now it gives me error 500 instead of the other
    Photo: https://drive.google.com/file/d/1AcX0isNS728oXG4D2HG_UD6-OCU4QHig/view

    • This reply was modified 11 months, 4 weeks ago by adminalvaro.
    • This reply was modified 11 months, 4 weeks ago by adminalvaro.
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We looked at your site http://pantalonesrojos.000webhostapp.com and see that it is not loading but throwing the 500 internal server error. Please, make sure that your site is running first so that we can test the relevant sitemap index on our end.

    Please, let us know once the site is up and running.

    Thread Starter adminalvaro

    (@adminalvaro)

    Try this link: https://pantalonesrojos.000webhostapp.com/

    It should be running, but my site is on a free hosting. Sometimes it doesn’t load.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We are afraid to say that link you have shared with us still not working. Please, let us know once you have a working link for us.

    Thread Starter adminalvaro

    (@adminalvaro)

    I have just modified .htacces file. Try now.

    Plugin Support marcanor

    (@marcanor)

    Hi @adminalvaro,

    We’ve just checked your sitemap and it seems to be working correctly. We see the sitemap and no 500 errors. See this image for reference.

    Can you please delete and re-submit your sitemap in Google Search Console? You can find more information on how to do this here.

    Thread Starter adminalvaro

    (@adminalvaro)

    It’s a google error. I sent the sitemap to Bing and it reads the sitemap perfectly.
    When I send the sitemap to Google, it shows me the same error

    Plugin Support marcanor

    (@marcanor)

    Hi @adminalvaro ,

    We’re sorry to hear that you’re still having issues with your sitemap. Did you re-submit it? Also, please make sure to check the last crawl date, since it’s possible that Google has not re-crawled the sitemap yet and it might take a while for them to update their report in Google Search Console.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    This thread has been marked as resolved due to a lack of activity. You’re always welcome to re-open this topic.

    Thanks for understanding!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Sitemap Error’ is closed to new replies.