ServerName www.cryhavoc.org.uk ErrorLog /var/log/apache2/cryhavoc-error.log CustomLog /var/log/apache2/cryhavoc-access.log combined RemoteIPProxyProtocol On DocumentRoot /usr/share/wordpress Alias /wp-content /var/lib/wordpress/wp-content-cryhavoc Order deny,allow Allow from all Require all granted Options FollowSymLinks AllowOverride Limit Options FileInfo Order allow,deny Allow from all Require all granted DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] SSLEngine on SSLCertificateFile /var/local/certificates/cryhavoc.org.uk/fullchain.pem SSLCertificateKeyFile /var/local/certificates/cryhavoc.org.uk/privkey.pem ServerName cryhavoc.org.uk ErrorLog /var/log/apache2/cryhavoc-error.log CustomLog /var/log/apache2/cryhavoc-access.log combined RemoteIPProxyProtocol On # # This redirects all accesses to the HTTPS version of the site. # RewriteEngine On RewriteRule ^/?(.*) https://www.cryhavoc.org.uk/$1 [R=301,L] SSLEngine on SSLCertificateFile /var/local/certificates/cryhavoc.org.uk/fullchain.pem SSLCertificateKeyFile /var/local/certificates/cryhavoc.org.uk/privkey.pem ServerName cryhavoc.org.uk ServerAlias www.cryhavoc.org.uk ErrorLog /var/log/apache2/cryhavoc-error.log CustomLog /var/log/apache2/cryhavoc-access.log combined RemoteIPProxyProtocol On # # This redirects all accesses to the HTTPS version of the site. # RewriteEngine On RewriteRule ^/?(.*) https://www.cryhavoc.org.uk/$1 [R=301,L]