How to automatically redirect a website to https
To set automatic url redirection from http://domain.com to https://www.domain.com
- Go to your Filemanager
- 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]