How to redirect all HTTP requests to HTTPS?

Step 1: Create text file save it with name .htaccess

Step 2: Write bellow code into file

RewriteEngine On 

RewriteCond %{HTTPS} !on 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Step 3: Save File and Upload to your
Web Hosting account (most of people upload this .htaccess file into www or public_html folder)


Download .htaccess file Click Here
How to redirect all HTTP requests to HTTPS? How to redirect all HTTP requests to HTTPS? Reviewed by Shoutcast Radio Reseller - KMwebSoft.com on August 29, 2018 Rating: 5

No comments:

Powered by Blogger.