WordPress SEO by Yoast: XML Sitemap 404 Issue

Normalmente no me alojar sitios web en GoDaddy , pero recientemente he tenido un cliente que insistió en el uso de su alojamiento , y me encontré con un problema cuando se trata de presentar el mapa del sitio de Google Webmaster Tools . Usamos el SEO WordPress por complemento Yoast , que crea automáticamente un mapa del sitio XML , pero esta vez se volvía un error 404 . La solución fue modificar el archivo .htaccess añadiendo este código al principio del archivo :
The solution was to modify the .htaccess file by adding this code to the beginning of the file:

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


WordPress SEO by Yoast: XML Sitemap 404 Issue

Typically I don’t host websites on GoDaddy, but I recently had a client that insisted on using their hosting, and I ran into a problem when trying to submit the sitemap to Google Webmaster Tools. We use the WordPress SEO by Yoast plugin, which automatically creates an XML sitemap, but this time it was returning a 404 error. The solution was to modify the .htaccess file by adding this code to the beginning of the file:
Continue reading

© 2023 Kyle W. Henderson

Website Design by JellyFlea CreativeUp ↑