supert3d supert3d - 1 month ago 6
Apache Configuration Question

RedirectMatch > regex

Any ideas why this isn't working?

RedirectMatch rule in an .htaccess file.

RedirectMatch "(?\/(?:images)\/(.*)(jp?g|bmp|png)" "$1$2"

I've a feeling it boils down to the regex not being correct.

Desired outcome:
Basically if a request is made for:
it get's pulled from here:


I think you are in need of a RewriteRule rather than RedirectMatch:

RewriteRule ^images/([^/]+)$ /assets/images/public/$1 [L]