I want to rewrite url through .htaccess rule?
<p>Hi guys actually my url is "http://collection.com/alok/ranjan/dubey.php?pid=12" i want to remove two folder in between this url and my output will be "http://collection.com/dubey.php?pid=12" please help me.
i am writing  as shown below</p>

<pre><code>Options +FollowSymLinks
RewriteEngine On
RewriteRule ^dubey.php?pid=([a-zA-Z0-9\-]+)$ alok/ranjan/dubey.php?pid=$1
</code></pre>
