RewriteEngine On

# Unknown paths serve the custom 404 page rather than a host default.
ErrorDocument 404 /404.html

# The retired Tumblr host always goes directly to the Blog home.
RewriteCond %{HTTP_HOST} ^thoughts\.rockhymas\.com$ [NC]
RewriteRule ^ http://rockhymas.com/ [R=301,L,NE,QSD]

# Apex HTTP is temporary while the origin has no TLS certificate.
# Restore HTTPS redirects when a certificate is assigned.
RewriteCond %{HTTP_HOST} ^www\.rockhymas\.com$ [NC]
RewriteRule ^ http://rockhymas.com%{REQUEST_URI} [R=301,L,NE]
