title: How to get parent folder in htaccess?
body: <p>I want to insert images, css and js dynamic. I have a folder themes and there I want to have multiple themes.</p>
  
  <p>Below the structure of my app. This themes folder is located in the root.</p>
  
  <p><img src="https://i.stack.imgur.com/qev7p.png" alt="Structure"></p>
  
  <p>I have added this record in my .htaccess:</p>
  
  <pre><code>RewriteRule ^(css|js|img)/(.*)$ /themes/default/$1/$2
  </code></pre>
  
  <p>And my path will be redirected like:</p>
  
  <pre><code>/css/style.css             http://site.com/themes/default/css/style.css
  /js/someLib.js             http://site.com/themes/default/js/someLib.js
  /img/background.jpg        http://site.com/themes/default/img/background.jpg
  </code></pre>
  
  <p>Now I want the <code>default</code> directory to be dynamic.</p>
  
  <p>I tried something like this</p>
  
  <pre><code>RewriteRule ^(css|js|img)/(.*)$ ../$1/$2
  </code></pre>
  
  <p>And I tried</p>
  
  <pre><code>/default/css/style.css
  RewriteRule ^(.*)/(css|js|img)/(.*)$ /themes/$1/$2/$3
  </code></pre>
  
  <p>But without result :(</p>