title: .htaccess file on xampp (basedir wrong.. incorrect path for images, css files..)
body: <p>i got another problem.</p>
  
  <p>i have an own apache server (XAMPP) on my computer. The URL in my browser looks like </p>
  
  <pre><code>http://localhost/pageExample/index.php
  </code></pre>
  
  <p>i use a .<strong>htaccess</strong> file to change my url <strong>from</strong> <code>?action=home</code> <strong>to</strong> <code>home.html</code></p>
  
  <p>The problem now is, that the path to all images, css files etc be wrong. They looks like </p>
  
  <pre><code>http://localhost/images/logo.jpg
  </code></pre>
  
  <p>I think, there is something wrong in my .htaccess file... i tried <code>&lt;base href="http://'.$_SERVER['HTTP_HOST'].'/pageExample/"&gt;</code>.. this works ..okay... but some scripts with extern images doesnt work.</p>
  
  <p>My .htaccess file looks like:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^home.html$ /pageExample/index.php?action=home [L]
  </code></pre>
  
  <p>(By the way... the problem came since I created the .htaccess)</p>
  
  <p>How to change this?
  Thanks!</p>