removing .php extension from url using .htaccess file
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11674705/htaccess-hide-extension-and-variables">.htaccess hide extension and variables</a>  </p>
</blockquote>



<p>I want to change the my url</p>

<p>for example,</p>

<p>from: <a href="http://domain-name.com/dir/page1.php" rel="nofollow">http://domain-name.com/dir/page1.php</a>
to: <a href="http://domain-name.com/dir/?page1" rel="nofollow">http://domain-name.com/dir/?page1</a></p>

<p>Please suggest .htaccess file code for this</p>

<p>I am not using any CMS. Its just a simple php website.</p>
