htaccess help please

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 http://www.ipaddresslocation.org/ip_ranges/get_ranges.php
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