Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

different address cloaking?



11:58 am on Jun 27, 2008 (gmt 0)

5+ Year Member

I am wondering how to do this,
I have two domain names pointing to one site
one is a .com and other a .co.uk
How can i send say, www.example.co.uk to the main site
and www.example.com to a directory www.example.com/US ?
Is it possible, fairly easily?


12:23 pm on Jun 27, 2008 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Yes if you have an Apache server.

There's a whole sub-forum devoted to many such similar issues.

However, are the two sites going to be similar or the same, of very different?


12:32 pm on Jun 27, 2008 (gmt 0)

5+ Year Member

They will be similar, but not the same
Well, actually they will be the same site as in domain server, but i want to serve different content to US visitors and Uk visitors, maybe later even more countries....
that s why i say, the site is up and running as main site .me.uk
but i have .com address, that currently goes to same page/site, but virtually all visitors from US bounce immediately, so i am guessing i need to target US specifically.


8:34 pm on Jun 29, 2008 (gmt 0)

5+ Year Member

if your host allows it, subdomains...

example here is what yahoo does. They send all www.yahoo.co.uk connections to uk.yahoo.com and us users just get www.yahoo.com

So putting one site into a sub-domain would solve part of the issue, you would need to have PHP or a CGI script or similar to do the redirection, you may even get away with using a .htaccess file to do the URL rewrites based on whats in the address bar.


Featured Threads

Hot Threads This Week

Hot Threads This Month