title: How to refresh page on back button click?
body: <p>I use .htaccess to route all of my traffic to a single index.php file. The code below to directs traffic, but for some reason it doesn't work with the back button. I don't know what to do to get the back button working. I've tried a variety of things and googled quite a bit and none of it has worked so I'm hoping someone here can help!</p>
  
  <pre><code>&lt;?php
     if(isset($_GET['parameters'])) {
        if($_GET['parameters'] == "repair")
           include 'repair.html';
        else if($_GET['parameters'] == "training")
           include 'training.html';
        else if($_GET['parameters'] == "products")
           include 'products.html';
        else if($_GET['parameters'] == "about")
           include 'about.html';
        else if($_GET['parameters'] == "employees")
           include 'employees.html';
        else if($_GET['parameters'] == "training")
           include 'training.html';
        else if($_GET['parameters'] == "newaccount")
           include 'newaccount.html';
        else if($_GET['parameters'] == "contact")
           include 'contact.html';
        else if($_GET['parameters'] == "recommended")
           include 'recommended.html';
        else if($_GET['parameters'] == "careers")
           include 'careers.html';
        else
           include 'home.html';
     }
     else
        include 'home.html';
  ?&gt;
  </code></pre>
  
  <p>So far I've tried and failed to use: <code>window.onbeforeunload</code>
  <code>body onunload=""</code></p>
  
  <p>There has got to be a way to <code>onunload=location.reload()</code> or something! Somehow has to know the syntax!!</p>