Quantcast
Channel: PHP Blog Spot
Viewing all articles
Browse latest Browse all 42

Redirect HTTP to HTTPS using .htaccess

$
0
0

  Now you just need to add the above code at your .htaccess file for redirect http to https RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R,L] For Example:- Now, when a visitor types http://www.yoursite.com/mypage.htm the server will automatically redirect http

The post Redirect HTTP to HTTPS using .htaccess appeared first on PHP Blog Spot.


Viewing all articles
Browse latest Browse all 42

Trending Articles