ServerName www.professionalexamservices.com ServerAlias professionalexamservices.com *.professionalexamservices.com ServerAdmin WebMaster@ProfessionalExamServices.com DocumentRoot /var/www/sub-domains/com.professionalexamservices.www/html ScriptAlias /cgi-bin/ /var/www/sub-domains/com.professionalexamservices.www/cgi-bin/ 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/com.professionalexamservices.www-access_log" combined ErrorLog "/var/log/httpd/com.professionalexamservices.www-error_log" Options -ExecCGI -Indexes AllowOverride None Order deny,allow Deny from all Allow from all Satisfy all # # Options ExecCGI # SetHandler cgi-script # RewriteEngine on RewriteCond %{SERVER_NAME} =www.professionalexamservices.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]