I own two http:// addresses. They both link to the same place, the home dir of my server. As my host doesn’t give me the option to have the second address link to a sub dir, I was wondering if I could set this up myself using php or htaccess or something?
The two addresses are totally different, so maybe having as bit of code “read” what address was used or something? Hope this makes sense.
EDIT
So: say I have http://www.a.com and http://www.b.com both link to the main folder my host space.
Now I want http://www.a.com to keep linking there, but I want http://www.b.com to link to a subdir /public_html/b
Maybe thats a bit more clear. Thanks!
You could route requests to the two domains to different folders using RewriteRules: