How to redirect all urls for ssl and non ssl ?
-
This post is deleted! -
You're going to want to use the .htaccess file to redirect www to non (or vice versa) and then also direct all http to https. Try this:
RewriteEngine On
#redirect non https to https
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]#redirect non www to www
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www..+$ [NC]
RewriteCond %{HTTP_HOST} (.+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]