Forum Moderators: phranque

Message Too Old, No Replies

Code question

Want one url to automatically go to another url

         

jtmoney77

5:06 am on Nov 8, 2003 (gmt 0)

10+ Year Member



I own a domain, we will call it domain.net. I am currently running a site with the same name but it ends in domain.com. I want to know the code you need for when the user hits domain.net it automatically goes to domain.com. Do I need domain.net to be hosted too?

Thank you in advance...

Jeremy
[superior-source.com...]

Zaphod Beeblebrox

11:03 am on Nov 8, 2003 (gmt 0)

10+ Year Member



First, posting URL's is against the TOS... ;)

Second, you could have domain.net rerouted to domain.com by your registrar...

Another option is to have a page at domain.net which immediately redirects to domain.com, in which case you'll have to host both.

FInally, and probably the most elegant, you could have the nameservers setup so they both point to the same IP-address.