loading
img-bg

How to enable HTTPS / SSL redirection from HTTP and remove www homepage - How to enable HTTPS / SSL redirection from HTTP and remove www

With Hostiso you can easily enable HTTPS redirection from HTTP for your site. We wish also to note that Hostiso offer FREE SSL for every account/domain, just request it from support/client area or during hosting order. To enable HTTPS redirection and also at same time route all requests from www to non-www version of site fallow these easy steps. STEP 1: Go to cPanel > File manager and in public_html and click to edit .htaccess file ( if you do not see .htaccess file click on SETTINGS on top right corner of File Manager and select both checkbox, this will then allow to show any hidden files, if this still do not show .htaccess file, then just create new file and add code from STEP 2. STEP 2: In .htaccess add these rules: RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Click SAVE. That is all, your site will now load over https and route all requests from www to non-www version of site. NOTES: – If there is already some content in file, in most cases add rule bellow this part of code: RewriteEngine on