Url 重定向到未知的 .shtml link

Url is redirects to .shtml unknown link

我需要实施 SSL 重定向。 HTTP/https 和非 www 网址应强制重定向到 https://www 网址。

htaccess 文件中存在浏览器验证码,这就是重定向到 https://exmpledomain/.shtml

的原因
After the Authentication code please write this

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ ([^\ ]+)
RewriteRule ^ https://www.%{HTTP_HOST}%2 [L,R=301]

RewriteCond %{HTTPS} off
RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ ([^\ ]+)
RewriteRule ^ https://%{HTTP_HOST}%2 [L,R=301]