First , Open Your Notepad Editor I Recommend Usinghttp://notepad-plus-plus.org/ and write this code
RewriteEngine On
RewriteBase /htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L]
Then Save it as ".htaccess"
Then Upload The File To Your Website Hosting Root
And If You Are Using Godaddy Use This Code
Options -MultiViews
RewriteEngine On
RewriteBase /root_folder_name
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L]
Done







