RewriteCond "%{HTTP_USER_AGENT}" "(xxxyyyzzz)" [AND]
RewriteCond "%{REQUEST_SCHEME}" "^http$"
RewriteRule "^/(.*)$" "https://abc.com/$1" [R,L]
猜的, 错了也别问我了, 自己撸吧
https://httpd.apache.org/docs/current/mod/mod_rewrite.html
【 在 whitecpf 的大作中提到: 】
: RewriteCond RewriteRule 配置问题
: 配置http到https上的重定向,需要:
: 如果HTTP_AGENT匹配到某一个特征串,比如以某个特征字符串开头
: ...................
--
FROM 119.114.245.*