Jump to content

Two different domain points to index.php but need 2 gives query different result


kee2ka4

Recommended Posts

Hi everyone!

 

I have got two domains with same name but one is .com and the other is .co.uk, lets say www.sitename.com and www.sitename.co.uk for example. When I type in the url www.sitename.com, I want the site to display results that is located in USA and when I type in www.sitename.co.uk, I want the page to display results only in UK.

 

I am using php and I know displaying the appropriate result is a programming question but I wanted to know what Mod rewrite rule can I use to make it work.

 

So what I want is

www.sitename.co.uk/index.php (this displays results in uk)

www.sitename.com/index.php (this displays results in usa)

 

How can I achieve this.

Thanks,

Zub

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.