RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] Header always set Content-Security-Policy “upgrade-insecure-requests;”
Force Redirect HTTP to HTTPS using .htaccess Code
- Post author:Marketer Rashed
- Post last modified:November 29, 2022
- Reading time:1 mins read
Please Share This Share this content
Marketer Rashed
This Is Marketer Rashed! A Digital Marketing Expert With Over 6+ Years of Experience On Digital Marketing. CEO & Founder at "Digital Marketing MasterMind" and Madaripur Outsourcing Institute.