How to automatically redirect a website to https

To set automatic url redirection from to

  1. Go to your Filemanager
  2. Find .htaccess or create a file new file

Put this content in .htaccess

RewriteEngine on
# force ssl
RewriteCond     %{SERVER_PORT} ^80$
RewriteRule     ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
Please rate this article to help us improve our Knowledge Base.

4 0

Hello , talk to a hosting specialist today and discover which options will work best for you.

+255 734 666 100