Your site does not appear secure after SSL is installed. What can you do to resolve this issue? To instead redirect all requests to https and non-www, use the following code instead of the previous:
 

Step 1: First, login to cPanel

Step 2: Browse to File Manager > Document Root:

Step 3: Choose the domain name you want to gain access to

Step 4: Check “Show Hidden Files (dotfiles)”

Step 5: Click on "Save.”

Step 6: Find the .htaccess file if you already have it, then open Edit or create a .htaccess file.

Step 7: You need to right click on the .htaccess file, then click on “Code Edit” on the menu.

Step 8: Add the "RewriteEngine" code to the .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Step 9: Now, click on “Save Changes”.

Step 10: Finally, click on “Close”.

 

Once complete, your domain will automatically redirect HTTP to HTTPS. If you have any problems, then please contact support.

Was this answer helpful? 0 Users Found This Useful (0 Votes)