【问题标题】:htaccess redirect with query string on iishtaccess 在 iis 上使用查询字符串重定向
【发布时间】:2014-12-15 07:00:55
【问题描述】:

我最近将主机从 linux 更改为 windows

现在是重定向

RewriteRule ^exit?([.]*)$ /exit.php?$1 [L]

不工作。

我的意思是它不会将查询字符串作为匹配 $1 添加到 exit.php

什么都可以

exit?qs=hjdskgfh

结局像

exit.php?

没有添加 qs

服务器使用 Helocin ISAPI_Rewrite 3 模块

如何解决?

【问题讨论】:

    标签: .htaccess mod-rewrite iis url-rewriting


    【解决方案1】:

    我把规则改成了

    RewriteRule ^exit?([.]*)$ /exit.php\?%{QUERY_STRING} [L]

    现在可以了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-31
      • 1970-01-01
      • 2021-04-05
      • 1970-01-01
      相关资源
      最近更新 更多