I'm a bit of an .htaccess n00b, and can't for the life of me get a handle of regular expressions.
I have the following piece of RewriteRule
code that works just fine:
RewriteRule ^logo/?$ /pages/logo.html
Basically, it takes /pages/logo.html
and makes it /logo
.
Is there a way for me to generalize that code with variables, so that it works automatically without having to have an independent line for each page?
I know $1
can work as a variable, but thats usually for queries, and I can't get it to work in this instance.