We are running a magento installatino with two websites. I have configured a .htaccess redirect with GeoIP in order to redirect visitors from one country to website number two.
This works, however the backend url gets also redirected which would not be a problem, but it makes the backend behave "strange" like searches and saving don't work anymore.
Here is what I put into the .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^website\.co.th$ [NC]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TH$
RewriteRule ^(.*)$ http://website.co.th/$1 [L]
What would I have to add in order to exempt the backend from the redirect rule?