Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ol!ver

macrumors 6502a
Original poster
Mar 2, 2005
526
0
I've got two domains, the-iblog.com and the-iblog.co.uk. I have the .com forwarded to .co.uk, but I don't want the address bar to reflect this. I want it to still say.com if that's the site the came in on. How would I do this?

Thanks
 
I've got two domains, the-iblog.com and the-iblog.co.uk. I have the .com forwarded to .co.uk, but I don't want the address bar to reflect this. I want it to still say.com if that's the site the came in on. How would I do this?

Thanks

You could probably just have both sites point at the same server files (assuming you run them from the same server). Then they'd be two separate sites, but use the same code and database.

Otherwise it might be tricky, and it would probably be best to allow the redirect to take place.
 
You could probably just have both sites point at the same server files (assuming you run them from the same server). Then they'd be two separate sites, but use the same code and database.

Otherwise it might be tricky, and it would probably be best to allow the redirect to take place.

There's only one physical site and set of files.
 
There's only one physical site and set of files.

Then you don't, theoretically, need forwarding at all. Just have both domains point to the same IP address, and things should work properly.

If you are using virtual hosts in Apache, you'll need to add ServerAliases for the alternate domains:

I think it is something like:
Code:
ServerName the-iblog.com
ServerAlias *.the-iblog.com the-iblog.co.uk *.the-iblog.co.uk

If you are not using virtual hosts, I think it should just work as is...
 
Then you don't, theoretically, need forwarding at all. Just have both domains point to the same IP address, and things should work properly.

If you are using virtual hosts in Apache, you'll need to add ServerAliases for the alternate domains:

I think it is something like:
Code:
ServerName the-iblog.com
ServerAlias *.the-iblog.com the-iblog.co.uk *.the-iblog.co.uk

If you are not using virtual hosts, I think it should just work as is...

How do I point it at a DNS? I've changed the name servers, is there something else?

Cheers matey.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.