【发布时间】:2015-05-18 12:01:37
【问题描述】:
我的所有用户都收到了唯一的链接。示例;
http://example.com/limeSurvey190/index.php?sid=59684&lang=en&token=1234567890
token 在这里是独一无二的。
我已经完成了 LimeSurvey 软件更新,所以现在我的用户需要转到这里;
http://example.com/surveys/index.php/survey/index/sid/59684/
token/1234567890/lang/en
我试过这条规则;
RewriteRule ^limeSurvey190/index.php?sid=59684&lang=en&token=([0-9]+)/?$ surveys/index.php/survey/index/sid/59684/token/$1/lang/en [NC]
它不起作用。我对重写/重定向规则很陌生,所以我可能误解了RewriteRule
【问题讨论】:
-
您无法匹配 rewriterule 中的查询字符串。您需要使用 query_string 或检查请求。
标签: .htaccess redirect url-rewriting rewrite