by davidgelb » Sun Nov 02, 2008 9:17 pm
Hey - I am new to all the mod_rewrite stuff. My question is similar to the OP's question, so I am hoping there is someone who can help me...
I am using a php script that is tied to one of my domains. I would like to be able to get to that script via one of my other domains, but it must be accessed by the domain it is tied to.
The problem is, though, when someone enters the forwarded domain and it redirects, the actual URL is displayed in the address bar. I need the subdomain to display in the address bar, not the URL it was forwarded to.
Both sites are mine, so I have access to the HTAccess on both. Can someone tell me what the code would be to accomplish this?
for instance, I want someone to be able to enter 'http://show.mediasharz.com' which will redirect them to 'http://mysite.com/mediashare' but still display 'http://show.mediasharz.com' in the address bar.
Thank you in advance for your help!!
-David