How to easily redirect HTTP traffic to HTTPS using .htaccess file.

If you have an .htaccess file in your server, just modify it to add the following, save it and see the magic happen. You might need to refresh you http page if the browser has cached it.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

[My Video Promotion]
Bookmark the permalink.

This post is password protected. Enter the password to view any comments.