SFERATRON
Login Registration English
Top Trends
Choose Theme
QR-CODE

Catalog  •  Publication

@fozzy

Setting up a redirect from http to https

For the site address to automatically change from http: / to https: /, you must add the appropriate directives to the .htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]


How to edit .htaccess

Below is a guide on how to edit the .htaccess file via file manager. If you are using your own editing methods, you can skip this.

1.  Open file manager in cPanel.

2.  Click the button:   Settings   (in the upper right corner).

3.  In the list that opens, check the box:  Show hidden files (dot files).

4.  If you do not have the .htaccess file yet, create it by clicking on the File button in the upper left corner.

5.  Select the .htaccess file and click the  Edit  button (in the upper right corner).

6.  Copy above lines and paste into .htaccess, then save the file.

7.  Done! Forwarding to https is enabled.


More helpful instructions can be found on our website


Fozzy – The fastest hosting

  • Shared Hosting – from $3 / month
  • Domains – from $0.82 / year
  • Linux VPS & Windows VPS – from $8.99 / month
  • SSL certificates – free


Join our community!

Facebook – https://www.facebook.com/fozzy​hosting

YouTube – https://www.youtube.com/fozzyi​nc

Vkontakte – https://vk.com/fozzyru


Tags:   Fozzy  •  Fast Hosting  •  Guide  •  https  •  cPanel  •  htaccess  •  Redirect  •  Instruction


Go top




Login to your account or register

Nobody has commented on this post yet.
Be the first to do it!

  • To beginning
  • No more new