File: //etc/apache2/sites-enabled/healthnettoday.com.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName healthnettoday.com
ServerAlias www.healthnettoday.com
DocumentRoot /var/www/healthnettoday.com
<Directory /var/www/healthnettoday.com>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/healthnettoday_error.log
CustomLog ${APACHE_LOG_DIR}/healthnettoday_access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.healthnettoday.com [OR]
RewriteCond %{SERVER_NAME} =healthnettoday.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>