title: how to remove folder name from url using htaccess
body: <p>I want to change the URL from:</p>
  <pre><code>http://example.com/Portfolios/iPhone/app
  </code></pre>
  <p>To:</p>
  <pre><code>http://example.com/iPhone/app
  </code></pre>
  <p>And same for all URLs like:</p>
  <pre><code>example.com/Portfolios/iPad/app
  </code></pre>
  <p>To:</p>
  <pre><code>example.com/iPad/app
  </code></pre>
  <p>And from:</p>
  <pre><code>example.com/Portfolios/xyz/app
  </code></pre>
  <p>To:</p>
  <pre><code>example.com/xyz/app
  </code></pre>
  <p>I have tried a lot but nothing is working for me.</p>
  <hr />
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine on
     RewriteRule ^Portfolios(/.*|)$ $1 [L,NC]  
  &lt;/IfModule&gt;
  </code></pre>