title: Apache site does not load without http or https in front of it
body: <p>when I do not include the http:// or https:// prefix, my site does not load.</p>
  
  <p>For example, these don't load:
  <code>example.com</code> , <code>www.example.com</code></p>
  
  <p>But this does:
  <code>https://example.com</code>, <code>http://example.com</code>, <code>http://www.example.com</code>, <code>https://www.example.com</code></p>
  
  <p>I am using Apache as my webserver, and here is my sites-available conf:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerAdmin
          DocumentRoot /var/www/html
          ServerName example.com
          ServerAlias www.example.com
  
          &lt;Directory /var/www/html/&gt;
              Options Indexes FollowSymLinks
              AllowOverride All
              Require all granted
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  
          &lt;IfModule mod_dir.c&gt;
              DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
          &lt;/IfModule&gt;
  
  RewriteEngine on
  RewriteCond %{SERVER_NAME} =example.com [OR]
  RewriteCond %{SERVER_NAME} =www.example.com
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I do have an SSL Cert, generated by certbot.</p>
  
  <p>Any ideas on why this is happening?</p>
  
  <p>Thanks in advance</p>