12 lines
232 B
ApacheConf
12 lines
232 B
ApacheConf
|
RewriteEngine on
|
||
|
|
||
|
|
||
|
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
|
||
|
RewriteRule ^ /%1 [NC,L,R]
|
||
|
|
||
|
RewriteCond %{REQUEST_FILENAME}.html -f
|
||
|
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
|
||
|
|
||
|
ErrorDocument 404 /404.html
|
||
|
ErrorDocument 403 /404.html
|