Welcome! Log In Create A New Profile

Advanced

Re: Having trouble understand how rewrite works

October 19, 2011 12:39PM
Hi!

Arguments cannot be checked with location directive. Put the below code into your main server {} block, for example, before declaring any of the locations:


if ($request_uri ~ ^/index\.php\?PageID=1$) {
rewrite ^ /? permanent;
}


Andrejs
Subject Author Posted

Having trouble understand how rewrite works

victor October 19, 2011 11:54AM

Re: Having trouble understand how rewrite works

Denis F. Latypoff October 19, 2011 12:28PM

Re: Having trouble understand how rewrite works

victor October 19, 2011 12:34PM

Re: Having trouble understand how rewrite works

Denis F. Latypoff October 19, 2011 12:38PM

Re: Having trouble understand how rewrite works

victor October 19, 2011 01:10PM

Re: Having trouble understand how rewrite works

locojohn October 19, 2011 12:39PM

Re: Having trouble understand how rewrite works

locojohn October 19, 2011 12:40PM

Re: Having trouble understand how rewrite works

victor October 19, 2011 12:52PM

Re: Having trouble understand how rewrite works

António P. P. Almeida October 19, 2011 08:22PM

Re: Having trouble understand how rewrite works

victor October 19, 2011 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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