In Apache mod_rewrite rules there is way you can use RewriteCond
to make it match literal strings without regular expressions using equals sign (=
) before matching patten like this:
RewriteCond %{REQUEST_URI} =/views/index.php
RewriteRule ^ /views/index.xml [L]
Space after caret symbol (^
) is necessary, because we still use two parameters in RewriteRule
Apache mod_rewrite directive.