• Hello,

    I installed the plugin but when I click on the button request a sitemap. I came across a page 404. https://mesrecettesmaison.com/sitemap_index.xml

    I added the following code in .htaccess
    # WordPress SEO – XML Sitemap Rewrite Fix – for subfolder install
    RewriteEngine On
    RewriteBase / wordpress /
    RewriteRule ^ $ sitemap_index.xml /wordpress/index.php?sitemap=1 [L]
    RewriteRule ^ $ locations.kml /wordpress/index.php?sitemap=wpseo_local_kml [L]
    RewriteRule ^ $ geo_sitemap.xml /wordpress/index.php?sitemap=wpseo_local [L]
    RewriteRule ^ ([^ /] +?) – Sitemap ([0-9] +) $ ?. xml /wordpress/index.php?sitemap=$1&sitemap_n=$2 [L]
    # END WordPress SEO – XML Sitemap Rewrite Fix

    I still have the same problem. I came across an error page 404. Could you help me please. thank you

    Best Regards

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Arpenoo,

    I’m having the same issue too.

    I did some research on the Yoast Website and came across this:

    A 404 not found error on the sitemap

    1) There’s a conflict with another poorly coded plugin. Or you have a custom post type named ‘Video’ in your WordPress install.

    2) If it’s your sitemap index, you should follow these steps: Solution 1

    3) If it’s your GEO (Local SEO) sitemap, you should follow these steps first: Solution 2

    4) If you have a custom post type ‘Video’, add a single line of code to your functions.php: Solution 3

    Thread Starter arpenoo

    (@arpenoo)

    Hi,

    I placed the following code:

    # WordPress SEO – XML Sitemap Rewrite Fix
    RewriteEngine On
    RewriteBase /
    Sitemap_index.xml /index.php?sitemap=1 RewriteRule ^ $ [L]
    RewriteRule ^ $ locations.kml /index.php?sitemap=wpseo_local_kml [L]
    RewriteRule ^ $ geo_sitemap.xml /index.php?sitemap=geo [L]
    RewriteRule ^ ([^ /] +?) – Site map ([0-9] +)?. $ xml /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^ ([az] +) – Sitemap.xsl $ /index.php?xsl=$1 [L]
    # END WordPress SEO – XML Sitemap Rewrite Fix

    That did not work so I deleted the plugin because it has become too complicated.
    Although I removed the plugin I always have a page error 404 in webmasters tools so maybe this is not the WordPress SEO plugin that problem. There may be another plugin that problem. Which I do not know.

    Best regards

    Fatal error: Call to undefined function wp_enqueue_media() in /home/solarpa3/public_html/wp-content/plugins/wordpress-seo/admin/class-config.php on line 355

    WHAT DOES THIS MESSAGE MEAN? HOW DO I FIX THIS?
    IM TRYING TO USE THE sEo PLUGIN BY YOAST ON MY Solar Panels for Your Home website https://www.solarpanelsforyourhome.us/

    please help if you can?

    After the latest update of Yoast also I have had too many problems. support yoast premium is only so today I decided to change plugin. Today I’m migrating to all-in-seo.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error page 404 in sitemap’ is closed to new replies.