Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set the CF-IPCountry header value as "Country" variable
- SetEnvIf CF-IPCountry "(.*)$" Country=$1
- # Than redirect it if the variable match. "ID" for Indonesia (rediect except)
- RewriteCond %{ENV:Country} !^(US|GB|MX|CA|FR|DE|BE|AU|NO|NZ|RO|RU|CH)$
- RewriteRule ^(.*)$ https://newdowmain.com/$1 [R,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement