Last active
December 30, 2019 10:39
-
-
Save jdevalk/5318003 to your computer and use it in GitHub Desktop.
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 - 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, you are missing one line though, the one that includes the .xsl files:
RewriteRule ^([a-z]+)?-?sitemap.xsl$ /wordpress/index.php?xsl=$1 [L]