/in httpdocs, I pasted the following code into htaccess at the very bottom. But, unfortunately, it didn't work for me. I wonder where I'm doing wrong? There is already no problem with https redirection, but when I type with www, it still detects and gives an error like two separate sites. how do I redirect it to being without www? Thanks.
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>