2

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?

0

I found the solution to the problem:

First answer in this thread works for me:

https://stackoverflow.com/questions/9502026/htaccess-rewrite-folder-exception

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.