Removing the PHP Extension from a URL
If you are developing a website in PHP then most of your files will end in the .PHP file extension. This works just fine for your development, but when you release your website the .php extension is just added characters in the URL. Most websites that use PHP simple have the extension of the page removed. This leads to cleaner, shorter, and easier to read URLs. It is also better for your SEO or Search Engine Optimization. Using a simple .htaccess file with a few lines we can automatically add the .php file extension to any URL without it. This means something like example.com/page will look like example.com/page.php to the computer, but still retain the cleaner look of example.com/page to the user. Note: You can still explicitly call any page even with this change.