homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Marketing and Biz Dev / Cloaking
Forum Library, Charter, Moderator: open

Cloaking Forum

different address cloaking?

5+ Year Member

Msg#: 3685083 posted 11:58 am on Jun 27, 2008 (gmt 0)

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?



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

Msg#: 3685083 posted 12:23 pm on Jun 27, 2008 (gmt 0)

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?


5+ Year Member

Msg#: 3685083 posted 12:32 pm on Jun 27, 2008 (gmt 0)

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.


5+ Year Member

Msg#: 3685083 posted 8:34 pm on Jun 29, 2008 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Marketing and Biz Dev / Cloaking
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved