我想要这些 URL 重定向/转发:
here.com/foo ==> there.com/a/b
here.com/foobar ==> there.com/c/d
我有这两个 .htaccess RewriteRule 行:
RewriteRule ^foo$ http://there.com/a/b [R=301,L]
RewriteRule ^foobar$ http://there.com/c/d [R=301,L]
但结果是:
here.com/foo ==> there.com/a/b
here.com/foobar ==> there.com/a/b
foo
也匹配foobar
我如何使它工作?