
VirtualHost HTTP redirect to HTTPS is another way to redirect HTTP to HTTPS other than .htaccess, it's easy to do if you edit .conf files.
<VirtualHost *:80>
ServerName www.khonkaensoft.com.com
Redirect / https://www.khonkaensoft.com/
</VirtualHost>
<VirtualHost *:443>
ServerName www.khonkaensoft.com
# ... SSL configuration goes here
</VirtualHost>
Comments
Post a Comment