psanchez/workstation-logs/master/content/static/.htaccess
# Disallow includes to execute code
Options +includesNOEXEC
# Deny directory listing
Options -Indexes
# Follow symlinks
Options +FollowSymLinks
# prevent access to .htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
# custom error pages
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
# rewrite rules
RewriteEngine On
# Redirect favicon requests to a single file
# /favicon.ico
RewriteCond %{REQUEST_URI} !^/favicon.ico$ [NC]
RewriteCond %{REQUEST_URI} /favicon(s)?.?(gif|ico|jpe?g?|png)?$ [NC]
RewriteRule (.*) http://fosstel.com/favicon.ico [R=301,L]
# Redirect robots.txt requests to a single file
# /robots.txt
RewriteCond %{REQUEST_URI} !^/robots.txt$ [NC]
RewriteCond %{REQUEST_URI} robots.txt [NC]
RewriteRule .* http://fosstel.com/robots.txt [R=301,L]
# Remove trailing slashes.
# e.g. example.com/foo/ will redirect to example.com/foo
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=permanent,QSA]
# Redirect to HTML if it exists.
# e.g. example.com/foo will display the contents of example.com/foo.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+)$ $1.html [L,QSA]
On Github License
Files
Download PDF of Htaccess file