htaccess - 按路径段转发

时间:2016-12-28 15:35:17

标签: .htaccess

我想通过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]

这条规则似乎被忽略了 - 没有任何反应。

0 个答案:

没有答案