title: How to use dynamic path for images in Wordpress 3.6.1
body: <p>Currently I am working on a Wordpress website.</p>
  
  <p>I have multiple websites on my webserver so my Wordpress site is located at <code>http://localhost/wordpress/</code></p>
  
  <p>Now I want to have dynamic paths for my images.</p>
  
  <p>As HTML for my logo I use </p>
  
  <pre><code>&lt;img src="images/logo.png" /&gt;
  </code></pre>
  
  <p>And in my <code>.htaccess</code> I use </p>
  
  <pre><code>RewriteRule ^images/(.*)$ wp-content/uploads/$1 [L]
  </code></pre>
  
  <p>This is only working on my homepage. When I go to the contact page <code>http://localhost/wordpress/contact</code></p>
  
  <p>I need to change my logo HTML to <code>&lt;img src="../images/logo.png" /&gt;</code> to have it working on the pages.</p>
  
  <p>How can I point my htaccess record to the root so that I allways can use the path <code>images/(.*)</code>?</p>
  
  <p>I think I forget the <code>RewriteCond</code> but I have tried some and nothing works, even some internal server errors appears.</p>
  
  <p>How can I do this?</p>
  
  <p>My complete <code>.htaccess</code> looks like</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /wordpress/
      RewriteRule ^index\.php$ - [L]
  
      RewriteRule ^images/(.*)$ wp-content/uploads/$1 [L]
  
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /wordpress/index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>