- On Your Cpanel Dashboard Go To Filemanager > Public_html
- Right Click On .httaccess file & click on edit
- Paste the code & click on save it
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]