title: modrewrite of url
body: <p>I have some mod rewrite which will remove the .php and format a certain page called county.php.</p>
  
  <p>My problem is with the part that rewrites the county.php. I have to put a '/' in front of all the links to css, images and js files. This causes problems on other parts of the site as I use php includes. Is there away around this? Thanks</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^county/([^/\.]+)/?$ county.php?county_id=$1 [L]
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule (.*) $1.php
  </code></pre>