Msg#: 4643837 posted 9:13 am on Feb 10, 2014 (gmt 0)
Can't be done. The browser, and only the browser, decides what to put in the address bar, based on the information it has about the current URL. If the browser believes-- whether correctly or otherwise-- that it is at example.com/directory/pagename, the address it displays will reflect that belief.
Some browsers, notably mobiles, just show the domain name. Some leave off the "http(s)" part. Some show the complete URL. There are probably other permutations. (Wasn't there some discussion of this behavior, a few Firefoxes ago?)
Msg#: 4643837 posted 1:17 am on Feb 13, 2014 (gmt 0)
You could use a frame/iframe if you really really wanted to do this. The address will be hidden from the address bar, but the user can find if they really want to. However, you should be aware of the negative aspects of doing this (bad user experience, unable to bookmark, bad for SEO, etc.) - but maybe that is not a concern?