fofr/paulhayes.photography/master/themes/paulhayes.photography/source/.htaccess - Htaccess File

fofr/paulhayes.photography/master/themes/paulhayes.photography/source/.htaccess

Options -Indexes
ErrorDocument 404 /404.html

RewriteEngine On
RewriteRule ^email/?$ /contact/ [R=301,NC,L]
RewriteRule ^feed/ /atom.xml [R=301,NC,L]
RewriteRule ^tag/$ /archive/ [R=301,NC,L]

# Photos used to live at /2011-01/...
RewriteRule ^201d-d{2}/(.*)$ /photos/$1 [R=301,NC,L]

# Avoid www. in URL
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

AddCharset UTF-8 .html .json
AddType application/json .json

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTP_HOST

Comments

Apache