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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.