The below code will automatically redirect any traffic from http://www.scriptplazza.com to https://scriptplazza.com.
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
The below code will automatically redirect any traffic from http://www.scriptplazza.com to https://scriptplazza.com.
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]