Something wrong with my .htaccess

thesyndicate

Elite Member
Jr. VIP
Joined
Oct 8, 2008
Messages
2,541
Reaction score
763
I am trying to block all countries expect two. But now it blocks all of them

Code:
# Redirect
Redirect 301 / www.hello.com

# RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(TH|SE)$
RewriteRule ^(.*)$ http://www.google.com$1 [L]
 
isn't the second line going to redirect everything before you even get to the Geo-specific lines. Comment this line out and see what happens;
Redirect 301 /
 
Back
Top