Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Joost de Valk

    (@joostdevalk)

    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!

    Thread Starter germanliu

    (@germanliu)

    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

    Thread Starter germanliu

    (@germanliu)

    Joost, with the latest update (1.2.5) I went back to the beginning. I can see the sitemap at: https://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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] error: 404 when submitting yoast XML sitemap to google webmaster to’ is closed to new replies.