 <p>Enable mod_rewrite and .htaccess through <code>httpd.conf</code> and then put this code in your <code>.htaccess</code> under <code>DOCUMENT_ROOT</code> directory:</p> <pre><code>Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^(folder)/([^.]+)\.asp$ /$1/$2.php [L,NC] </code></pre>