URL Redirection

admin

Administrator
Staff member
I have a somewhat complex question. I have 2 web domains that I want to register, one will probably get a lot of traffic and the other will probably not. So I contacted my web hosting service, to see if they could point the second domain to a subfolder of the account I have with them for the first one. So that I could simply share the bandwidth and filespace of those two pages from my one account. But they say they are unwilling to do this, and all new domains can only point to the main directory of my account.

So, I was wondering if there was any way to have my index page check which address they entered and then redirect them to a subfolder for that page. Such as obviousexample.com and otherexample.com both open the same homepage, but that homepage reads which address was entered, and then redirects the user to the proper homepage such as obviousexample.com/page2/. Is there any way to do this? Any help would be greatly appreciated. Thanks.
 
Back
Top