title: jQuery: Redirect user if urls equals not
body: <p>I want to redirect user to a specific page, when they are not on this page.</p>
  
  <p>So something like (pseudo code):</p>
  
  <pre><code>if not (url = example.com/index.php)
     redirect to example.com/index.php
  /if
  </code></pre>
  
  <p>When a user e.g. visit page example.com/forum.php he will be redirected to example.com/index.php</p>
  
  <p>(The jQuery file is loaded in every file)</p>
  
  <p>How can I archive that?</p>