我想通过htaccess将https://www.example.com/de/path/some/more/paths/转发给http://sub.example.com/de/path/some/more/path/。 “some / more / paths”是可变数量的路径段。
我尝试使用RewriteRule:
RewriteRule ^/de/path/(.+) http://sub.example.com/de/path/$1 [R=301,L]
这条规则似乎被忽略了 - 没有任何反应。