Force Redirect HTTP to HTTPS using .htaccess Code

  • Post author:
  • Post last modified:November 29, 2022
  • Reading time:1 mins read

RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] Header always set Content-Security-Policy “upgrade-insecure-requests;”

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.

Leave a Reply

eleven + eight =

This site uses Akismet to reduce spam. Learn how your comment data is processed.