htaccess   

Remove .php extension from the URL using htaccess

Use this short htaccess code snippet to remove .php extension from the urls and turn ugly urls into cleaner ones

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
Need Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us