I have this .htaccess file. What I'm trying to achieve is when I go to site/about/ -> site/sitemap. Otherwise when I go to site/about/me -> site/about/me.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
Redirect 301 /about/index.php /sitemap/ <- my custom rule
The thing is - it's working, but when I, for instance, comment out that custom rule, save and then go test it, the rule still works, though it's been commented out. To actually see the changes I should do it via "Incognito mode".
So, that's the question - why is it happening (cookies, cache or what?) and how to fix it if possible?