RewriteEngine On

# Old domain(s)
RewriteCond %{SERVER_NAME} !=criztovyl.space
RewriteRule ^(blog/?)?(.*) https://criztovyl.space/$2 [L,R=301]

# HTTPS
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]