Created
July 6, 2014 22:38
-
-
Save eslucky/70fc0d02a5c67a84d736 to your computer and use it in GitHub Desktop.
Yoast WordPress SEO XML Sitemap not working Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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<br> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment