我想這些URL重定向/轉發:
here.com/foo ==> there.com/a/b
here.com/foobar ==> there.com/c/d
我有這兩個的.htaccess重寫規則行:
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
如何麥它工作?
必須有一些其他的錯誤。給定的'RewriteRules'正在爲我工作。 – hjpotter92 2012-07-06 07:01:46