【问题标题】:URL double encoding issue html +Apache2.2 +Mod_rewriteURL双重编码问题html +Apache2.2 +Mod_rewrite
【发布时间】:2020-06-29 22:35:25
【问题描述】:

看起来双重编码的 url 改变了 html 文件中的内容。

重写规则 ^/about/test.html(.*)$ /test/test.html$1 [NE]

规则工作正常,但对于双重编码,它会在 html 文件中添加 %20

例如。 标题 测试%20Test%20Test%20

有没有办法清理我们 mod_rewrite 的 html 文件,或者这个问题与 Apache+redirect 无关

【问题讨论】:

    标签: html apache mod-rewrite


    【解决方案1】:

    得到.htaccess url rewrite and removing %20的答复

    此规则可能会影响所有 ,而是使用 %{REQUEST_URI} 申请所需的 uri。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-19
      • 1970-01-01
      • 2021-04-27
      • 1970-01-01
      • 1970-01-01
      • 2011-05-15
      • 2014-10-31
      • 2020-01-15
      相关资源
      最近更新 更多