Loading ...

How to add http to https redirection on website (Displaying Secure in URL)?

Once you have activated your SSL. Please follow these steps to display secure in your url (Adding http to https redirection). If you still have not activated your SSL you can activate it using our previous guide How to activate our free SSL certificate in cPanel? Let’s start following are the simple steps for the same:

  1. Login to cPanel
  2. Locate and click on File Manager in File Section:How to add http to https redirection on website | Hapih Host
  3. Then enter in the public_html folder by double click on same. (If you adding SSL on subdomain or Addon domain enter in their respective folder)How to add http to https redirection on website | Hapih Host
  4. Then Locate file .htaccess in same folder. The file is usually hidden in cPanel. You can make it visible by Locating setting option on top Left corner.How to add http to https redirection on website | Hapih Host
  5. Then a popup will appear. Tick on show hidden files and apply.How to add http to https redirection on website | Hapih Host
  6. If still the file missing. Then you can create it by:
  7. Right Click on same. And Edit and enter following code (As it is):

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

8. Click SAVE and now open your website.