Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
当您的 Web 服务器运行 Apache 时,您可以使用 modRewrite。
将其添加到 .htaccess 中,该文件应位于 http 域的根目录中
.htaccess
RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
When your Webserver runs Apache, you can use modRewrite for that.
Add this to the .htaccess, that should be located in the root directory of the http domain
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
当您的 Web 服务器运行 Apache 时,您可以使用 modRewrite。
将其添加到
.htaccess
中,该文件应位于 http 域的根目录中When your Webserver runs Apache, you can use modRewrite for that.
Add this to the
.htaccess
, that should be located in the root directory of the http domain