当我使用此代码将超文本传输协议重定向到https时:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
它会给出500个内部服务器错误。
/home/siggle/public\u html/。htaccess:无效命令'\xef\xbb\xbfWriteEngine',可能拼写错误或由未包含在服务器配置中的模块定义
您需要在服务器上安装URL重写模块:https://www.iis.net/downloads/microsoft/url-rewrite