tomyknoker
04-28-2008, 12:43 PM
Hi all... I know how to do a redirect to a new URL using a .htaccess file if I am pointing to a different server, however both domain.com and domain.com.cn are pointing to the same server, I just am wondering what I would add into my .htaccess file to get it to redirect from domain.com.cn to domain.com?
I have tried this:
Redirect permanent / http://domain.com
Which works for the .com.cn, but once it reidrects to the .com it keeps redirecting and the browser freaks out and gives me the following:
Too many redirects occurred trying to open “http://www.domain.com/”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.
I have tried this:
Redirect permanent / http://domain.com
Which works for the .com.cn, but once it reidrects to the .com it keeps redirecting and the browser freaks out and gives me the following:
Too many redirects occurred trying to open “http://www.domain.com/”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.