How to http to https Redirect Htaccess

When you Active SSL For Your Site it’s important to Redirect http to https Redirect From .htaccess files. Here i Show you Code you can use it in your WordPress htaccess to redirect http to https.

http to https Redirect

How to http to https Redirect Using Htaccess

Add This Code in your .htaccess File

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

if you Still face any issue Comment below and i can reply.

Leave a Reply

0 Shares
+1
Share
Tweet
Pin
Share
Stumble
%d bloggers like this: