title: File location problems
body: <p>I have a navbar on each page a footer and css etc. I have put a php file 2 folder in so raffles/page/pagetemp.php because this is a template for more files that will be created later and this is for more order so it wont all get cluttered into 1 file.</p>
  
  <p>I used <code>include '../../navbar.php';</code> to make it include the navbar into the file as well wich works beautifully, but the problem is now the href on the navbar are all direct links to the file so for example index.php
  When I click on the buttons in the pagetemp.php they don't direct me into the main folders index. They try to find a index in the folder I'm in now, same with images.</p>
  
  <p>I cannot start adding ../../ in front of all the links because then the other pages wouldn't work. How can I solve this problem is there for example "host/index.php" so then it would always know to look into the host folder?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!-- example of a button in the navbar located in the host folder --&gt;
  &lt;a href="raffles.php"&gt;&lt;p class="button"&gt;Raffles&lt;/p&gt;&lt;/a&gt;
  
  &lt;!-- what I am using to include the navbar into the pagetemp.php located in host/raffles/page--&gt;
  &lt;?php include '../../navbar.php';?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>I apolagise if this is confusing if you have any questions please comment so I can answer them.</strong></p>