title: URL rewriting : css, js, and images not loading
body: <p>I've following rule for <code>.htaccess</code></p>
  
  <pre><code>Options +FollowSymLinks
  
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  
  RewriteRule ^detail/([0-9]+)/?$ detail.php?id=$1
  </code></pre>
  
  <p>It redirects <code>http://localhost/detail/123</code> URL to <code>http://localhost/detail.php?id=123</code>. The page redirects successfully, but the problem is <code>CSS, JS, and images</code> are not loading,</p>
  
  <p>CSS, js files are located under <code>http://localhost/css/</code> and <code>http://localhost/js/</code></p>
  
  <p>One solution is to use <strong>absolute path</strong> (ex /CSS, or /js rather than just CSS/, /js but this does not seem a reliable solution since we've to change it on all files,</p>
  
  <p>Any other solution based on <code>.htaccess</code> rules, which is independent of editing all PHP files and let us use "relative paths"? </p>