Welcome! Log In Create A New Profile

Advanced

Re: Rewriting all requests to index.php

Denis F. Latypoff
July 12, 2010 03:58PM
12.07.10, 23:46, "astrochase" <nginx-forum@nginx.us>:

> I'm new to Nginx. How do I rewrite all requests to index.php? So for
> example, if http://www.example.com/some/path/ is requested, I'd like
> http://www.example.com/index.php 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.

_______________________________________________
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: 216
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