Search Our Database
How to redirect user from HTTP to HTTPS
If you have subscribed SSL and wondering when users surf the website it does not show HTTPS, do not worry, the HTTPS is there, you just have to redirect HTTP to HTTPS. Simply follow the steps below to redirect users to SSL page.
P/S: You have to ensure that Apache is configured for HTTPS connection and necessary SSL certificates are installed.
1. Go to the following directory:
public_html/.htaccess
2. Edit by adding the this scripts below to redirect http -> HTTPS
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Now even when user type “http” they will be redirect to HTTPS page.