【问题标题】:Hide QueryString with mod_rewrite使用 mod_rewrite 隐藏 QueryString
【发布时间】:2012-12-21 23:58:04
【问题描述】:

我正在尝试隐藏链接的查询字符串部分localhost/out.php?url=http://www.foo.bar

使 URL 看起来:localhost/out.php

我的 apache mod_rewrite 模块已启用并正在工作。

我已经阅读了一些其他答案并尝试了一堆 rewritecond 和 rewriterules 但我无法使其正常工作,那么有人可以帮助我吗? :$ty

【问题讨论】:

标签: apache .htaccess mod-rewrite


【解决方案1】:
RewriteRule ^/out.php /out.php?

来自here

【讨论】:

  • 试过了,但我仍然得到 localhost/out.php?url=value :$ 啊,错过了说 mod_rewride 模块已配置并在我的 apache 服务器中工作。
猜你喜欢
  • 1970-01-01
  • 2010-09-22
  • 2011-03-06
  • 1970-01-01
  • 1970-01-01
  • 2010-12-31
  • 2020-09-25
  • 1970-01-01
  • 2011-09-08
相关资源
最近更新 更多