Welcome! Log In Create A New Profile

Advanced

Re: nginx rewrite url

September 03, 2012 05:34AM
Пришел к такому решению:

location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass backend-skazka18.ru;
if ($arg_id = "28") {
return 301 /activity/bubble-show.html;
}
if ($arg_id = "13") {
return 301 /activity/corporate.html;
}
}
Работает.
Subject Author Posted

nginx rewrite url

senty September 01, 2012 06:12PM

Re: nginx rewrite url

San September 01, 2012 06:38PM

Re: nginx rewrite url

VBart September 01, 2012 08:10PM

Re: nginx rewrite url

senty September 02, 2012 01:44PM

Re: nginx rewrite url

VBart September 02, 2012 01:56PM

Re: nginx rewrite url

senty September 02, 2012 04:48PM

Re: nginx rewrite url

senty September 03, 2012 05:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
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