rendered paste bodyRewriteEngine On
# Remove www from all requests
RewriteCond %{HTTP_HOST} ^www\.andrewloe\.com$ [NC]
RewriteRule ^(.*)$ http://andrewloe.com/$1 [R=301,L]
# Index should go straight to journal
RedirectMatch ^/$ http://journal.andrewloe.com/
# Redirect old urls
RewriteRule ^gallery(.*)$ http://gallery.andrewloe.com$1 [L,R=301]
RewriteRule ^blog(.*)$ http://journal.andrewloe.com$1 [L,R=301]
# Anything else goes to journal
RewriteCond %{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} !-f
RewriteRule ^(.*) http://journal.andrewloe.com/$1 [L,R=301]