Using .htaccess, can you hide the true URL?
- by Richard Muthwill
So I have a web hotel with 1 main website
http://www.myrootsite.com/
and a few websites in subdirectories, in a folder called projects.
I have domain names pointing to the subdirectories, but when holding the mouse over a link in those websites the URLs are shown as:
http://www.myrootsite.com/projects/mysubsite/contact.html
When I'm on mysubsite.com I want them to be shown as:
http://www.mysubsite.com/contact.html
I spoke to support for the web hotel and the guy said try using .htaccess, but I'm not sure exactly how to do this.
Thank you very much for your time!
Edit: For more information
My website is: http://www.example1.com/ and I also own http://www.example2.com/.
All of example2.com's files are in: example1.com/projects/example2/.
When you visit example2.com, you'll notice all of the URL's point towards:
example1.com/projects/example2/
but I want them to point towards:
example2.com/
Can this be done? I hope this is enough info for you to go on :).
Edit: For w3d
I go to the url mysubsite.com and the browser shows the url mysubsite.com. The services I'm using create an iframe around myrootsite.com and use the url mysubsite.com
I just hate that in Firefox and Internet Explorer, holding the mouse over link show that the destination url is: myrootsite.com/projects/mysubsite/...