Welcome! Log In Create A New Profile

Advanced

Re: Geoip redirect but exclude a specific directory

November 24, 2010 07:49AM
I solved this by adding following rewrite rule just above the if statements for the geoip redirection

if ($request_uri ~* ^/admin)
{
break;
}

That solved the issue, now when someone from germany goes to site root they will still be redirected but if they go to admin section of the site, it wont redirect, thanks a lot Rainer and Maxim.

http://www.somerorbay.com
Subject Author Posted

Geoip redirect but exclude a specific directory

st1905 November 22, 2010 03:34PM

Re: Geoip redirect but exclude a specific directory

Maxim Dounin November 22, 2010 04:52PM

Re: Geoip redirect but exclude a specific directory

st1905 November 23, 2010 12:27PM

Re: Geoip redirect but exclude a specific directory

Rainer Duffner November 23, 2010 01:30PM

Re: Geoip redirect but exclude a specific directory

st1905 November 23, 2010 01:49PM

Re: Geoip redirect but exclude a specific directory

st1905 November 24, 2010 07:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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