【发布时间】:2017-06-18 10:33:37
【问题描述】:
我的标题说明了一切。我尝试了以下方法,但它仅适用于非 https 版本。
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^ https://www.example.com/members/ [R=301,L]
【问题讨论】:
标签: .htaccess ssl https url-rewriting
我的标题说明了一切。我尝试了以下方法,但它仅适用于非 https 版本。
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^ https://www.example.com/members/ [R=301,L]
【问题讨论】:
标签: .htaccess ssl https url-rewriting
试试下面的规则,
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^ https://www.example.com/members/ [R=301,L]
【讨论】: