htaccess redirect without html extension

Solutions on MaxInterview for htaccess redirect without html extension by the best coders in the world

showing results for - " htaccess redirect without html extension"
Sara
31 Jan 2017
1#remove html file extension https://example.com/page.html
2# to https://example.com/page
3RewriteEngine On
4RewriteCond %{REQUEST_FILENAME} !-d
5RewriteCond %{REQUEST_FILENAME} !-f
6RewriteRule ^([^\.]+)$ $1.html [NC, L]
7