【发布时间】:2012-03-13 06:28:36
【问题描述】:
大家好,
现在我想在 apache2 中使用 mod_rewrite 模块来重定向 url。
重写规则如下:
RewriteCond %{QUERY_STRING} ^url=(.+)$
RewriteRule ^/redir$ %1 [R=301,L]
但是,当输入 http://website.com/redir?url=http%3A%2F%2Fwww.google.com 时,mod_rewrite 模块无法取消 url 参数 http%3A%2F%2Fwww.google。 com,有什么方法可以解决这个问题吗?
【问题讨论】:
标签: mod-rewrite apache2 escaping