So I learned from this handy guide how to use .htaccess
to redirect pretty URIs like foobar.com/baz
to specific content that may reside at foobar.com/bazheader345.php?user=baz
.
What if I'd like to do the opposite? My anchors are static but I have a lot of content in different files - and none of them has a particularly pretty name. Say I have a page at foobar.com
called 123.html
and would like the location bar to remain http://foobar.com
despite the navigation between files that the user does.
Can this be done via changes to .htaccess
? Or simply Javascript?
If it is possible, would it interfere with the browser's history states?