My website works fine with https, but when I log in with http, https does not redirect.
I noticed something, the website public_html file is located in both root folder and home folder.
I add the standard redirect code to the .htaccess file but it doesn’t work at all.
Can you help me how to edit the vhost.conf and make the root part home/domainname/public_html?
I think the problem is with the Vhost Conf docRoot setting.
RewriteEngine on
# match query string params in any order
RewriteCond %{QUERY_STRING} ^$
# internal rewrite
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
# L for match path case insensitive