Here is my nginx.conf content:
if (!-e $request_filename) {
rewrite ^/(.*) /index.php/$1 last;
break;
}
rewrite_log on;
location ~ .*\.svn\/.* { return 405; }
location ~ .*\.php {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
location ~* \.(html|shtml|htm|inc|log)$ {
expires 1m;
}
location ~* \.(css|js)$ {
expires 1m;
}
location ~* ^.+\.(jpg|jpeg|gif|swf|mpeg|mpg|mov|flv|asf|wmv|avi|ico)$ {
expires 15d;
}
I changed some of this to Apache like this:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
But when I hided the /index.php/
in url, I can't load my static resources( css,js,img.etc),how can I change nginx location
rule to Apache's?