Hi, I want to rewrite my all site urls from http to https and also preserve URL canonicalation like all url redirected to http://www. Could you tell me how to achieve this goal? Thanks in advance.
Something like this might help, add to .htaccess, in main directory maybe (public_html) works with SUPHP RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://www%{HTTP_HOST}%{REQUEST_URI} Code (markup): Or you could redirect based on traffic to :80 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] Code (markup):