Please consider the following directory structure in my root:
/resources/css /resources/js /resources/templates /resources/images
I want to serve static content from the above directories but I also want to allow a rewrite like this to work:
rewrite ^/([a-z]+)(.*)$ /index.php?p1=$1&p2=$2;
myurl.com/register/... is rewritten to
But that rule also rewrites
/resources/, so how do I exclude
/resources from the rewrite? Or do I need another rewrite? Nothing I've tried seems to work so obviously I'm not understanding something.