supert3d supert3d - 1 year ago 135
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:

Answer Source

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

RewriteRule ^images/([^/]+)$ /assets/images/public/$1 [L]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download