ServerName www.pomec.net ServerAlias pomec.net *.pomec.net ServerAdmin WebMaster@PoMec.net DocumentRoot /var/www/sub-domains/net.pomec.www/html DirectoryIndex index.php index.htm index.html Alias /icons/ /var/www/icons/ # ScriptAlias /cgi-bin/ /var/www/sub-domains/com.ourownwiki.www/cgi-bin/ CustomLog "/var/log/httpd/net.pomec.www-access_log" combined ErrorLog "/var/log/httpd/net.pomec.www-error_log" Options -ExecCGI -Indexes AllowOverride None Order deny,allow Deny from all Allow from all Satisfy all RewriteEngine on RewriteCond %{SERVER_NAME} =www.pomec.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]