Welcome to WebmasterWorld Guest from 54.80.115.140
Forum Moderators: phranque
I noticed that this happens with wikipedia, for example. If you type in the URL for a wikipedia page but use the .com vs the .org, it switches the entire URL to .org.
Thanks!
If you are on a Microsoft server someone will be along shortly, maybe.
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^(www\.)?domain-name\.com
RewriteRule (.*) [domain-name.org...] [R=301,L]
(4) there is no (4). That's all.
-----
(*) Replace "domain-name" with yours, of course.
-----
Perhaps this thread is useful:
Site change of URL [webmasterworld.com]
I have writte a few detailled posts in that thread.