In order to remove extension from PHP files and make the URLs more user and search engine friendly. In this l I’ll show you how to do that easily, by editing the .htaccess file.
What is an .htaccess file
An .htaccess file is a simple ASCII file that you create with a text editor like Notepad or TextMate. It provides a way to make configuration changes on a per-directory basis.
Please note that .htaccess is the file’s extension. It isn’t file.htaccess, it is simply .htaccess.
Removing Extensions
To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]