Options +FollowSymlinks <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 /err/400.html ErrorDocument 403 /err/403.html ErrorDocument 404 /err/404.html ErrorDocument 500 /err/500.html ErrorDocument 502 /err/502.html ErrorDocument 503 /err/503.html ErrorDocument 504 /err/504.html