Help on rewrite rule
Denis F. Latypoff
latypoff at yandex.ru
Mon Oct 17 20:48:26 UTC 2011
18.10.2011, 03:36, "Nginx User" <nginx at nginxuser.net>:
> On 17 October 2011 23:35, Nginx User <nginx at nginxuser.net> wrote:
>
>> rewrite ^/main\.php(.*) index.php$1;
>
> Sorry
> rewrite ^/main\.php(.*) /index.php$1;
>
forget about rewrite with nginx:
location = /main.php {
fastcgi_pass ...
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
}
--
br, Denis F. Latypoff.
More information about the nginx
mailing list