我想重定向/重写中间目录'test'(删除它)
RewriteRule ^test(.*)$ /$1 [L,R=301]
RedirectMatch 301 ^/test/([^/]+)(?:/.*)?$ /$1
测试网址:https://my.domain/en-us/test/my/cool/path
目标网址:https://my.domain/en-us/my/cool/path
但似乎没有变化 . htaccess,重定向工作一般
这个问题已被问过很多次,但他们都指出了这两个答案......