NameVirtualHost *:80 ServerName ketrenos.com ServerAlias *.ketrenos.com # Redirect permanent / https://ketrenos.com/ # RewriteEngine On # Some rewrite rules in this file were disabled on your HTTPS site, # because they have the potential to create redirection loops. # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/ketrenos.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/ketrenos.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf ServerName ketrenos.com ServerAlias *.ketrenos.com Redirect permanent / https://ketrenos.com/ RewriteEngine On # Some rewrite rules in this file were disabled on your HTTPS site, # because they have the potential to create redirection loops. # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # RewriteCond %{SERVER_NAME} =ketrenos.com [OR] # RewriteCond %{SERVER_NAME} =*.ketrenos.com # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent]