Welcome! Log In Create A New Profile

Advanced

Re: Rewriting all requests to index.php

Reinis Rozitis
July 13, 2010 04:32AM
You can use also the try_files (
http://wiki.nginx.org/NginxCoreModule#try_files ) approach:

location / {
try_files $uri $uri/ /index.php?$args;
}


This way you can also have normal directories and static files and nginx
will check first if they exist and if not then use the /index.php in the
root folder.


rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewriting all requests to index.php

astrochase July 12, 2010 03:46PM

Re: Rewriting all requests to index.php

Denis F. Latypoff July 12, 2010 03:58PM

Re: Rewriting all requests to index.php

astrochase July 12, 2010 03:58PM

Re: Rewriting all requests to index.php

Reinis Rozitis July 13, 2010 04:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready