Karbala Province, Iraq

How to Enable SSL redirection for your domain

  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]
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts