I'm a little bit lost here. In my nginx conf file I want a rule that states this:
if $request_uri does not contain following words (css|images|js) then rewrite all to /index.php
this is what I got, but it doesn't work:
if ($request_uri ~ !(images|css|js)) {
rewrite $ /index.php;
}
I think the regex isn't matching up?
Edit: this is the solution
if ($request_uri !~* (images|css|js)) {
rewrite $ /index.php;
}