To redirect http traffic to https in Apache, create a .htaccess file with the following content:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Place the .htaccess file in your website directory and that should be it.
NOTE: The rewrite module in Apache must be enabled for this to work. To check whether it is enabled, open your […]

continue reading.....