Apache MatchRedirect exception regex
- by Arash Mousavi
I want to redirect any URL that is Https and hasn't start with "system_" to the same URL with http.
for exapmle for this url :
https://exsite.tld/some/thing/that/not/start/with/pattern
to :
http://exsite.tld/some/thing/that/not/start/with/pattern
but this url:
https://exsite.tld/system_aas3f4
Shouldn't redirect.
I try:
RedirectMatch ^/?((?!(system_)).*) http://exsite.tld/$1
but it won't work. I don't know what's the problem.