So, I learned from this handy guide on how to use .htaccesspretty URIs to redirect, such as foobar.com/baz, to the specific content that might be attached to foobar.com/bazheader345.php?user=baz.
What if I would like to do the opposite? My bindings are static, but I have a lot of content in different files, and none of them have a particularly beautiful name. Let's say I have a page in foobar.com, called 123.html, and I want the location bar to remain http://foobar.com, despite the navigation between the files that the user makes.
Can this be done by changing to .htaccess? Or just javascript?
If possible, will this affect the state of the browser history?
source
share