Removing the PHP Extension from a URL

Removing the PHP Extension from a URL
Posted by Scripts on 2022-08-14 23:31:43
License Type
License Type
Freeware
Description
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.
Author

super3boy

Ratings & Review
Uh oh! We couldn't find any review for this listing.
Post Review
License Type
License Type
Freeware