Rewriting all requests to index.php

Denis F. Latypoff latypoff at
Mon Jul 12 23:54:40 MSD 2010

12.07.10, 23:46, "astrochase" <nginx-forum at>:

> I'm new to Nginx. How do I rewrite all requests to index.php? So for
>  example, if is requested, I'd like
> to transparently handle it.
>  How can I do this?

location / {
    root                 /path/to/www;
    include            fastcgi_params;
    fastcgi_pass    ...;
    fastcgi_param  SCRIPT_FILENAME /path/to/www/index.php;

br, Denis F. Latypoff.

More information about the nginx mailing list