【发布时间】:2021-01-21 00:44:02
【问题描述】:
我有类似这样的 url 模式列表
https://www.web.com/?route=affiliate/register&
https://www.web.com/?route=account/edit&
https://www.web.com/index.php?route=affiliate/register&
https://www.web.com/index.php?route=account/edit&
https://www.web.com/?route=product/manufacturer/productmanufacturer_id
https://www.web.com/index.php?route=product/manufacturer/productmanufacturer_id
index.php 之后的任何 url 变化都不再被使用
我想请求一些帮助以正确地设置任何东西 index.php 为 410,因为 index.php 仍在使用几个页面
---编辑---
我的默认索引页面使用默认(index.php,index.html,index.htm)
所以使用 ravi htaccess 代码这个 url 仍然返回 200 OK(不起作用)
https://www.web.com/?route=affiliate/register&
https://www.web.com/?route=account/edit&
并且仅适用于此网址变体
https://www.web.com/index.php?route=affiliate/register&
https://www.web.com/index.php?route=account/edit&
【问题讨论】:
标签: .htaccess mod-rewrite url-rewriting query-string http-status-code-401