【问题标题】:HTACCESS issue with question mark in the url, ? remains网址中带有问号的 HTACCESS 问题,?遗迹
【发布时间】:2017-07-27 13:08:51
【问题描述】:

我正在使用 wordpress 重定向插件,因为我无权访问 .htaccess 文件。

我正在尝试重定向带有? 的网址,我设置了以下重定向,但? 留在了网址中。

/(.*) \?post_type=resource(.*) 我也试过 /\?post_type=resource(.*)

我正在重定向到/resources/

但是这个网址http://www.example.com/?post_type=resource&p100

重定向到http://www.example.com/?/resources/

有什么想法吗?

【问题讨论】:

    标签: wordpress .htaccess


    【解决方案1】:

    通过在源网址前添加^ 修复它

    ^/\?post_type=resource(.*)

    【讨论】:

      猜你喜欢
      • 2012-06-05
      • 1970-01-01
      • 2020-01-24
      • 1970-01-01
      • 1970-01-01
      • 2021-04-10
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多