【发布时间】:2018-03-30 20:36:59
【问题描述】:
我有 n 个这样的网址:
http://name.co/othername/xname
http://name.co/othername/yname
所以 name.co/othername 是相等的。只是“xname”正在更改为不同的名称。
我需要重定向到 HTTPS 端。
我试过了:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
但结果不正确。如果有人可以帮助我,那就太好了
【问题讨论】:
标签: mod-rewrite https