title: Relative URL not loading PHP file, but exact URL does
body: <p>Relevant code:</p>
  
  <pre class="lang-php prettyprint-override"><code>if(strpos($_SERVER['REQUEST_URI'],'/admin/') === 0 ){
      include_once 'admin.php';
      exit;
  }
  
  if(strpos($_SERVER['REQUEST_URI'],'pc-repair-') !== FALSE &amp;&amp; strpos($_SERVER['REQUEST_URI'],'-computer-services') !== FALSE ){
      include_once 'locations/default.php';
      exit;
  }
  
  include_once 'inl/head.php';
  </code></pre>
  
  <p>Example link on site:
  <code>&lt;a href="/about/special-offers/"&gt;Special offers&lt;/a&gt;</code></p>
  
  <p>Trying to make the request to /pc-repair-dallas-tx-computer-services/ but the PHP file doesn't actually load...</p>
  
  <p>PHP is working and short codes are enabled.
  I'm not a PHP developer so I'm out of my element here but would appreciate any advice to get these relative URLs working.  They are broken site-wide.  (eg. /about/special-offers/ does not load but /about/special-offers.php does)</p>
  
  <p>So it seems the direction I need to take is a rewrite rule in my .htaccess file.  Now, doing this for each file seems gratuitous, so I'm trying to write a rule that will automatically direct from /page to /page.php.  Here's what I've got so far in my .htaccess</p>
  
  <pre><code>php_value short_open_tag 1
  Options +MultiViews
  
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^([^\.]+)$ $1.php [NC,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <p><strong><em>I'm now able to access my files using the desired URL scheme.  The last problem lies within the code at the top, it is not including admin.php when the requested URL is at server.com/admin/</em></strong></p>