theangryangel/theangryangel.co.uk/master/.htaccess - Htaccess File

theangryangel/theangryangel.co.uk/master/.htaccess

ErrorDocument 404 /404.html

CheckSpelling On
CheckCaseOnly On
RewriteEngine On

# Archives
RewriteRule ^archives/?$ /blog [R=301,L]
RewriteRule ^blog/archives/?$ /blog [R=301,L]
RewriteRule ^blog/archives/d+-(.*)/? /blog/$1 [R=301,L]

# Tags
RewriteRule ^blog/tag/(.+)/page/d+$ /blog/tag/$1 [R=301,L]

# s9y to jekyll
RewriteCond %{QUERY_STRING} /feeds/index.rss2$
RewriteRule ^index.php /blog/rss.xml? [R=301,L]

RewriteCond %{QUERY_STRING} /feeds/index.(atom|rss)$
RewriteRule ^index.php /blog/atom.xml? [R=301,L]

RewriteCond %{QUERY_STRING} /(.*).html$
RewriteRule ^index.php /blog/${lc:%1}/? [R=301,L]

RewriteCond %{QUERY_STRING} /pages/(.*).html$
RewriteRule ^index.php /${lc:%1}/? [R=301,L]

# Someones feed reader is going to a mangled URL
RewriteCond %{QUERY_STRING} /feeds/index.rss2
RewriteRule ^http:/theangryangel.co.uk/index.php /blog/atom.xml? [R=301,L]

# habari to jekyll
RewriteRule ^blog/who-am-i/?$ /about? [L,R=301]
RewriteRule ^blog/get-in-contact/?$ /contact? [L,R=301]
RewriteRule ^blog/atom/1$ /blog/atom.xml? [L,R=301]
RewriteRule ^blog/sitemap.xml$ /sitemap.xml? [L,R=301]
RewriteRule ^blog/sitemap.xml.gz$ /sitemap.xml.gz? [L,R=301]

On Github License

Files

Download PDF of Htaccess file
QUERY_STRING

Comments

Apache