banner

how to remove php html extensions from website

Written by

For remove .php 

Add this code on your .htaccess file

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

For Remove .html
Add this code on your .htaccess file
RewriteRule ^([^\.]+)$ $1.html [NC,L]
 

Leave a Comment

Your email address will not be published. Required fields are marked *