WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
error: 404 when submitting yoast XML sitemap to google webmaster to (4 posts)

  1. germanliu
    Member
    Posted 2 years ago #

    Hi, I am getting General HTTP error: 404 not found when submitting the yoast xml sitemap to google. If I visit the sitemap URL: ritzycharters.com/sitemap_index.xml I can see the sitmap there.

    Any suggestions?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Could you open the following file:

    /wordpress-seo/inc/class-sitemaps.php

    then find this line:

    function output() {

    and add this immediately after it:

    header( 'HTTP/1.1 200 OK' );

    this might fix it, please let me know if it does!

  3. germanliu
    Member
    Posted 2 years ago #

    Joost, it worked! Thank you very much. Would you include this in next update? If not I will loose it.

    For everyone else, I ALSO added the following to the .htacces:

    # WordPress SEO - XML Sitemap Rewrite Fix
    <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>
    # END WordPress SEO - XML Sitemap Rewrite Fix

  4. germanliu
    Member
    Posted 2 years ago #

    Joost, with the latest update (1.2.5) I went back to the beginning. I can see the sitemap at: http://ritzycharters.com/sitemap_index.xml but google webmaster tools says: General HTTP error: 404 not found.

    I will add again the code you gave me and see what happens. It would be nice to have this resolved in next update ;)

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.