Forum Moderators: open
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]That’s Apache, not IIS. Which of the two--the screenshot, or the posted snippet--is actually used on the site? And if Apache, is it in htaccess, in a <Directory> section, or loose in config? You can test this easily in your browser by requesting various pages with the “wrong” form of hostname, and checking that you end up on the preferred form.Yes, then look at your logs to be sure there are no multiple redirects. When you request https://www.example.com/page.html your logs should show a 301 response and then a 200 response for https://example.com/page.html
The way to do that is create a new separate website entry and then on the "Home Directory" tabI can't tell you whether that is accurate current information, but you should be able to ask the host how to set it up.
Select A redirection to A URL
https://example.com
And tick A permanent redirection for this resource.