title: How to create a .htaccess file for php?
body: <p>I have been created web pages and run in loclahost,</p>
  
  <p>I need to remove the .php extension from a PHP file for example <code>localhost/root folder-name/wallpaper.php</code> to <code>localhost/root folder-name/wallpaper</code>.</p>
  
  <p>I search the Google, and i found like a link <a href="http://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/" rel="nofollow">http://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/</a></p>
  
  <p>Here is the <code>.htaccess</code> code:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  </code></pre>
  
  <p>May i know, is there possible to achieve this one in localhost?</p>
  
  <p>If possible means, how to create <code>.htaccess</code> file? I means, what is the name have to use to save <code>.htaccess</code> file?</p>
  
  <p>Anybody can help me? thanks in advance.</p>