So, I\'m trying to accomplish this:
We have a URL /brand/new-inventory.php
. This is a physical file within our site.
What I\'d like it to be is /b
Have it this way:
RewriteCond %{THE_REQUEST} \s/+brand/new-inventory\.php[/\s?] [NC]
RewriteRule ^ /brand/new [R=302,L]
RewriteRule ^brand/new$ /brand/new-inventory.php [L,NC]
Difference is use of %{THE_REQUEST}
that represents original request received by Apache from your browser. Value of this variable doesn't change with application of other rewrite rules.