Ralf Eggert wrote:
Hi Jason,
Adding the [L] flag to both your sitemap rules should do the trick.
unfortunately, it did not. I rewrote my rules now completely and changed
them like this:
# clear ending slashes
RewriteRule ^(.*)/$ /$1 [L,R=301]
# rewrite sitemap
RewriteRule ^sitemap\.xml$ sitemap.php
RewriteRule ^sitemap([0-9]+)\.xml$ sitemap.php?id=$1
# start framework rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
This seems to work now as expected.
I'd still use the L flag to be honest. as it indicates that this is the
last rule and no other ones should be looked at.
Col