7 lines
216 B
ApacheConf
7 lines
216 B
ApacheConf
#remove html file extension https://example.com/page.html
|
|
# to https://example.com/page
|
|
RewriteEngine On
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^([^\.]+)$ $1.html [NC, L]
|