Forum Topic: Help, my website has two addresses!

Forum: .htaccess Forum : Redirecting • Posted by peter • Updated:

Hi there!


my website: www.???.com can also be reached through: (i dont know why this happens) And if i type: www.???.com in the adressbar, upon pressing ENTER, immediately jumps to For obvious reasons i would like the website only to be know as: www.???.com


How can i put htaccess to work to make this happen? I only want my visitors to see www.???.com. My website lives in a subdirectory of ROOT.

Best regards,


5 Replies to “Help, my website has two addresses!”

Jeff Starr
Posted by Jeff Starr

Hi Peter,

This should be do-able with .htaccess.. are you able to include the chinese characters in your .htaccess file? If so, something like this should work in your site's root .htaccess file:

<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^www\.xn--6frs67a01r\.com [NC]
RewriteRule .* http://???.com/ [R=301,L]

Please note that this is theoretical, so test thoroughly and let me know how it goes!

Posted by peter •

Hi Jeff,

yes i can copy paste is to .htaccess but no it does not work, it says:

"the address has too many redirect loops, check the settings, probably nothing wrong with computer, check server settings"

yes i think you are right: .htaccess cannot digest chinese?

Did i run out of options right now?

1.650.000.000 people are staring at you Jeff

to see if you know this one.....

Jeff Starr
Posted by Jeff Starr

Hi Peter,

That result suggests that the two URLs are semantically equivalent, and that the server does interpret chinese characters. If this is the case, you will need to tak to your host to find out why the redirect is happening in the first place, and then followup with how to canonicalize it.

Two things you could try just to see if they work:

  1. Try replacing the RewriteRule with any existing page (to test that it works), for example: RewriteRule .* http://???.com/some-existing-page.html [R=301,L]
  2. Try mod_alias instead of mod_rewrite with this: Redirect 301 / http://???.com/

Most likely, there is something configured at the server-level that is causing the redirect, so again contact your host to see what's up.

Posted by Shea Bunge

Could it be possible that xn--6frs67a01r is the escaped version of ????

Jeff Starr
Posted by Jeff Starr

@Shea: yes, I think that's the case..

@Peter: I would contact your host for information on how to canonicalize your domain name, they should be able to help.