I am using .htaccess file to redirect my webpage URL to https://. But this code redirects only www.domain-name. If we type just https://domain-name.in or domain-name it is not redirecting. Please help me to solve this issue and redirect all URL to https://
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domainname\.in$
RewriteRule ^$ https://domainname.in/%{QUERY_STRING}