Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] RewriteCond %{http_host} ^example.com [NC] RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
这会将所有 HTTP 请求定向到 https://www.example.com 以及重定向 https://example.com 到 https:// /www.example.com。
That will direct all HTTP requests to https://www.example.com as well as redirect https://example.com to https://www.example.com.
试试这个...
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ [OR] RewriteCond %{HTTPS_HOST} ^domain.com$ RewriteRule ^(.*)$ "https\:\/\/www\.domain\.com\/$1" [R=301,L]
Try this one...
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
这会将所有 HTTP 请求定向到 https://www.example.com 以及重定向 https://example.com 到 https:// /www.example.com。
That will direct all HTTP requests to https://www.example.com as well as redirect https://example.com to https://www.example.com.
试试这个...
Try this one...