title: Object not found! The requested URL was not found on this server. localhost
body: <p>I have a typical set up A,M,P and i am just doing some testing on my localhost server for setting up a webpage. I'm a bit new to php and dynamic sites so I'm muddling my way though. So I am at an impasse here. Whenever I attempt to view the page in the browser and click on the links I get this error:</p>
  
  <p><strong>Object not found!
  The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
  If you think this is a server error, please contact the webmaster.
  Error 404
  localhost
  Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7</strong></p>
  
  <pre><code>my url looks like this: http://localhost/test/content/home
  </code></pre>
  
  <p>here is the code for my index.php page and my nav.php page</p>
  
  <p>first index.php</p>
  
  <pre><code>&lt;?php
  include('Config/setup.php');
  ?&gt;
  &lt;?php
  if(isset($_GET['page']) &amp;&amp; $_GET['page'] == !'') {
      $pg = $_GET['page'];
  } else {
      $pg = 'home';
  }
  #var_dump($pg);
  #exit;
  ?&gt;
  
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;
  
      &lt;title&gt;FTS&lt;/title&gt;
      &lt;link href="css/Styles.css" rel="stylesheet" type="text/css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div class="header temp_Block"&gt;
      &lt;?php include('templates/header.php');?&gt;
  &lt;/div&gt;
  
  &lt;div class="main_nav temp_Block"&gt;
      &lt;?php include('templates/main_nav.php');?&gt;
  &lt;/div&gt;
  
  &lt;div class="main_Content temp_Block"&gt;
      &lt;?php include('Content/'.$pg.'.php');?&gt;
  &lt;/div&gt;
  
  &lt;div class="footer temp_Block"&gt;
      &lt;?php include('templates/footer.php');?&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my nav.php</p>
  
  <pre><code>&lt;?php include('Config/setup.php')?&gt;
  
   &lt;a href="/test/content/home"&gt;home&lt;/a&gt;
   &lt;a href="/test/content/freestuff"&gt;free stuff&lt;/a&gt;
   &lt;a href="/test/content/aboutus"&gt;about us&lt;/a&gt;
   &lt;a href="/test/content/services"&gt;services&lt;/a&gt;
   &lt;a href="/test/content/Whatwedobetter"&gt;What we do better&lt;/a&gt;
  </code></pre>
  
  <p>I thought this might be a permissions problem because /content/home.php is in a subfolder in xxamp/htdocs/test. But I'm not entirely sure. I could test this on a hosting site which I have but the 404 error makes me think it might be something with localhost and not with my code. </p>