title: How to remove path information from url?
body: <p>How do I remove path inforation from a url?</p>
  
  <p>For example in this url, <code>http://stackoverflow.com/questions/ask</code>, I want the user to only see <code>http://stackoverflow.com</code>.  Is this possible to do?</p>
  
  <p>I do a redirect in PHP from my root directory to path Foo.  I don't want Foo to display in the URL.I also do a page reload of sorts using <code>window.location.href = domain_name/foo</code>.  Similarly I don't want foo to display in the URL.</p>
  
  <p>Is this possible to implment in Javascript or PHP or do I have to configure Apache to do this?</p>