index_php.conf 213 B

12345678910
  1. location / {
  2. if ($http_host ~* "^www\.(.+)$"){
  3. rewrite ^(.*)$ http://%1/$1 redirect;
  4. }
  5. if (!-e $request_filename){
  6. rewrite ^(.*)$ /index.php;
  7. }
  8. index index.htm index.html index.php;
  9. }