Options +FollowSymlinks +Includes AddType text/html .shtml AddOutputFilter INCLUDES .shtml DirectoryIndex index.shtml index.html <Files ~ "^.*\.([Hh][Tt][Aa])"> Order allow,deny Deny from all </Files> <Files .git> Order allow,deny Deny from all </Files> RedirectMatch 204 generate_204(.*)$ ErrorDocument 400 /cgi/e.cgi ErrorDocument 403 /cgi/e.cgi ErrorDocument 404 /cgi/e.cgi ErrorDocument 500 /cgi/e.cgi ErrorDocument 502 /cgi/e.cgi ErrorDocument 503 /cgi/e.cgi ErrorDocument 504 /cgi/e.cgi