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 a helping hand in fixing your website issues?
If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.
Hire Us