如果URL包含以fl=&fl=开头的查询字符串,我希望将所有URL重定向到另一个页面
传入的URL可以是从查询fl=&fl=开始的任何内容
https://example.com/a-core/?fl=&fl=test&fl=test1&fl=xyz;&fl=test3&fl=test4&fl=test5
https://example.com/a-core/?fl=&fl=test&fl=test0&fl=cpl;&fl=test8&fl=test9&fl=test7
以上所有URL都以查询字符串fl=&fl=开头,需要重定向到example2.com/test123 123
我试过了,但没有起作用
if ($args = "fl=&fl=*") {
return 301 https://example2.com/test123;
}发布于 2022-06-30 09:19:49
https://stackoverflow.com/questions/72812837
复制相似问题