Sign up ×  My desired result is change a file to root / from a N
number of paths.  For example:, where A~G is not always given.
Result:  This is what I have so far: --> using: RewriteRule
^a\/images/$ images/$1 [L].  What I need is a wildcard in front
of /images/ like this: RewriteRule ^*\/images/$ images/$1 [L].
How can I do this correctly in .htaccess?  share|improve this
question  1 Answer 1  This should do the trick: RewriteRule
^.+\/images/$ images/$1 [L]  In regex, the .+ is a wildcard
matching at least one character, so it will match**a**/images
and**a/b**/images but not  When working with regular expressions
for pattern matching, I have always found this page helpful:
share|improve this answer  Your Answer