I have installed wordpress on my site and I see when I open it with HTTPS it works fine, but when I open it with HTTP protocol it does not redirect automatcially.
How I can redirect all HTTP visitors to mu HTTPS version with?
Hello, You are using wordpress so its very easy and simple to redirect your unsecured http urls to secured https urls.
just install Really Simple SSL
after installing this plugin just activate this plugin and activate it.
you can also visit this tutorial for SSL redirection.
https://www.zainhosting.com/how-to-redirect-http-to-https-in-wordpress/
just go to your Cpanel’s file manager and locate a hidden file .htaccess, if it is not in your file manager then you can create it.
after that just put the code in the .htaccess file and save it.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^zainhosting.com [NC]
RewriteRule ^(.*)$ https://zainhosting.com/$1 [L,R=301]
replace zainhosting.com with your own url / domain.