If the RewriteRule regular expression starts with a ^/ it will need to be changed to be relative to the directory the .htaccess file is in. For example, if the rule was
- Code: Select all
RewriteRule ^/abc/def/$ /abc/ghi [QSA,L]
and you are moving it to /abc/.htaccess the regular expression would need to be changed to
- Code: Select all
^def/$
Any PT flags are no longer required, but leaving them will do no harm.
Redirect/rewrite loops may occur so
- Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS} ^$
may need to be added to some rules. (To rules that must only match requests from the browser, not requests from Apache after a rewrite.)
At the moment that's all i can think of.