I don't know if my title describes exactly what I want to do. What I want to do is to redirect visitors from a particular country to a different website. I think I have heard something along the lines of an Apache mod that redirects according to IP address and where in the world that is, I want something like that, but I still would like access to my site. Say I want to redirect all visitors with .uk at the end of the hostname to a different site how would I go about doing that?
You can use mod_geoip from MaxMind, it allows you to redirect from htaccess based on country: GeoIPEnable On GeoIPDBFile /path/to/GeoIP.dat RewriteEngine on RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CA$ RewriteRule ^(.*)$ http://www.canada.com$1 [L] Code (markup): More info here: MaxMInd GeoIP Apache API