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?

asked May 22, 2015 at 6:50

1 Answer 1

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

answered May 22, 2015 at 7:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.