Answers for "how to remove .php htaccess"

4

htaccess remove .html

#remove html file extension-e.g. https://example.com/file.html will become https://example.com/file
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
Posted by: Guest on June-13-2020
0

Remove .php htaccess

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]
Posted by: Guest on August-07-2021

Code answers related to "how to remove .php htaccess"

Browse Popular Code Answers by Language