I have a rest api that has to be executed only if the parameter "manual" is present in the request.
I tried with a RedirectMatch directive inside the virtualhost declaration
RedirectMatch 401 "^\/api\/file\.php\?.*(?!manual).*$
but it does not work. Actually seems that none of the last part of the regexp works.
EDIT: Umh, I just found out that RedirectMatch directive does not match against the query part of the get request...