crappy-jekyll/.htaccess

12 lines
232 B
ApacheConf
Raw Normal View History

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