MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - htaccess help please

WebPagetest Forums

Full Version: htaccess help please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi everyone

i wonder if you can help me by setting a rule for each ip from a certain country can be redirected to some sort another sub-domain or a link , anyone can help me please ?
Look at mod_geoip2. This makes the country of origin available as GEOIP_COUNTRY_CODE - you can build your rules from that.
you will need geoip you can find such ip database on you can get it from
then you have to setup ur .htaccess to redirect in ip case
# permanently redirect specific IP request for entire site
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} 22\.22\.22
RewriteRule \.php$ http://subdomain.YOURDOMAINHERE.COM/ [R=301,L]
but in experience it will cost you hard server load i think better to do it in php
Reference URL's