RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.astrolabe.coop/$1 [R,L] ErrorDocument 404 /404.html