nginx rewrite |
[eluser]DogWin[/eluser]
http://localhost/index.php/dogwin=>http:...ost/dogwin rewrite rule: location / { index index.php; #root /opt/lnmp/nginx/html/dogwin; if (-f $request_filename){ expires 3d; access_log off; } if (!-e $request_filename){ rewrite ^(.*)$ index.php/$1 last; # rewrite . index.php last; } location ~ /index.php/ { fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /opt/lnmp/nginx/html/dogwin/index.php; include fcgi.conf; } In the fact ,It's not working ! I don't know why? please help! thank u very much!
[eluser]farinspace[/eluser]
these are the rewrite rules I use for CodeIgniter and NGINX... |
Welcome Guest, Not a member yet? Register Sign In |