how to remove index.php?action=show&id=1234 from url on localhost <p>My URL is localhost/merge/Clients/index.php?action=show&amp;id=12 .. all i want to make it like localhost/merge/Clients</p> <pre><code>RewriteEngine on RewriteBase /Clients/ RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/ RewriteRule ^(.*)index\.php$ /$1 [R=301,NC] </code></pre>