Redirect http request to SSL https

I recently converted this blog to a full https site.

For the http redirection, I used this guide.

NameVirtualHost *:80
<VirtualHost *:80>
   ServerName blog.hazrulnizam.com
   Redirect permanent / https://blog.hazrulnizam.com/
</VirtualHost>

<VirtualHost _default_:443>
   ServerName blog.hazrulnizam.com
   DocumentRoot /path/to/wordpress
   SSLEngine On
# etc...
</VirtualHost>

Leave a Reply

Your email address will not be published.