How to Redirect from HTTP to HTTPS
Set up your redirects in your .htaccess file: <IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}[L,R=301]</IfModule> Look confusing? Here’s the breakdown: You can also solve this from within PHP in case your provider has disabled .htaccess (which is unlikely since you asked for it, but anyway)