301 Redirect Htaccess Rules
How to force HTTPS using the .htaccess file – InMotion Hosting To force all web traffic to use HTTPS insert the following lines of code in the .htaccess file: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Note: Be sure to replace www.example.com with your actual domain name. Setting up Permanent 301 Redirects –…