title: Css and javascript not loading with rewrite condition?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8120511/css-and-javascript-not-loading-in-rewrite-rule">Css and javascript Not Loading in rewrite rule</a>  </p>
  </blockquote>
  
  
  
  <p>After using only rewrite rule</p>
  
  <pre><code>RewriteEngine On
   RewriteRule ^profile.php$ profile.php
  </code></pre>
  
  <p>and when i load profile.php the css and javascript are loading</p>
  
  <p>but when make a change in rule and add condition</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_URI} !/profile.php$
   RewriteRule ^profile.php$ profile.php
  </code></pre>
  
  <p>and then the js and css are not loading</p>
  
  <p><strong>Coding of profile.php is</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-…
   &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
   &lt;head&gt;
   &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
   &lt;title&gt;Untitled Document&lt;/title&gt;
   &lt;link rel="stylesheet" href="http://localhost/css/profile.css" /&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;div class="image"&gt;&lt;ul&gt;&lt;li&gt;My&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
   &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
   &lt;/body&gt;&lt;/html&gt;
  </code></pre>