【问题标题】:htaccess rewrite redirect from parameters to the subfolderhtaccess 重写从参数重定向到子文件夹
【发布时间】:2021-08-05 00:56:47
【问题描述】:

当你转到 url 时我想要那个:https://www.example.com/subdir/?id=1

重定向到

https://www.example.com/subdir/

如何在我的 .htaccess 文件中做到这一点?

【问题讨论】:

    标签: .htaccess mod-rewrite apache2


    【解决方案1】:

    更改管理面板上的永久链接设置POST NAME,它将起作用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-04
      • 1970-01-01
      • 2014-06-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-08
      • 2013-12-31
      相关资源
      最近更新 更多