ssl – “Invalid Host Header” error on Apache2

I just used Certbot to install an SSL certificate on my web server. I can now access my website at However, simply typing into the address bar takes me to the unsecured (http) version of the site, where it simply says “Invalid host header” and nothing else.

Certbot added the following rewrite rules:

RewriteEngine On
RewriteCond %{SERVER_NAME} (OR)
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} (END,NE,R=permanent)

Any help would be much appreciated.