title: .htaccess file does'nt work properly
body: <p>I have create the .htaccess in following way</p>
  
  <pre><code> RewriteEngine on
  RewriteBase /school1
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*) index.php?path=$1 [L,QSA]
  </code></pre>
  
  <p>I mean that when user hit the <code>'school1/schools/schools'</code> they will get the contents of 'school1/index.php?path=schools/schools'  It is working properly but css js and images requests are going to the <code>school1/schools/[js|css|img]/...</code> as per directory instead of <code>school1/[js|css|img]</code></p>
  
  <p>I m not getting why they are getting the schools part from the url.
  if i m fire <code>http://demo.cwdesigns.org/school1/dashboard</code> it renders properly but when i <code>fire  http://demo.cwdesigns.org/school1/schools/schools</code></p>
  
  <p>Please help me I have wasted my long time for this problem. If you want any extra info please comment it.</p>
  
  <p><strong>update 1</strong>
   as per the first answer I have added the base tag to my head section </p>
  
  <pre><code>&lt;head&gt;
          &lt;base href="http://demo.cwdesings.org/school1" /&gt;
  
          &lt;meta charset="UTF-8"&gt;
          &lt;title&gt;Student Portal | Dashboard&lt;/title&gt;
  </code></pre>
  
  <p>but it doesnt seem to work.</p>