How to Enable SSL redirection for your domain

Share on facebook
Share on google
Share on twitter
Share on linkedin
  1. Login to cPanel.
  2. Find and Click on Filemanager (Figure 1).
  3. Click on Settings (Figure 2) and check (Show hidden files (Figure 3)) .
  4. If you can’t find .htaccess file then create new file in your domain document root (public_html in this case) and name it .htaccess (Figure 4).
  5. Edit the .htaccess and add this directives
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Mohammed H

Mohammed H

Leave a Reply

Your email address will not be published. Required fields are marked *