title: History API - tell browser to stay on index.html, regardless of the url
body: <p>I am making one-page web on my school project. I am using very simple history API, to just change the URL so user thinks he is on another page (but I am hiding and displaying different elements on a page)
  It looks like this:</p>
  
  <p><em>www.mypage.com/main
  www.mypage.com/slideshow</em> </p>
  
  <p>When I am using the application with back/forward history buttons it works fine, but when I want to reload the page, the browser tries to load that fake URL and that cause a crash of course. How do I manage to stay always on index.html no matter what url is displayed to the user please? </p>
  
  <p>I tried to manage this with htaccess, but I wasn't sucessful</p>