2011-04-20 47 views
0

我知道有很多類似的問題,但無法找到它們的值。如何修復以下.htaccess 301重定向

我做以下重定向在.htaccess

RewriteCond %{REQUEST_URI} ^/old/url/(.*)$ 
RewriteRule^/new-url/$1 [L,R=301] 

最終的結果我想獲得是http://old/url/page/2 - >http://new-url/page/2 但我正在逐漸得到錯誤的URL,像http://new-url/old/url/page/2 能有人給我一個提示如何只包括/頁/ 2 /在最後的URL追加部分重定向

感謝

+0

任何人,我明白這是一個快速的事情,但我真的可以使用方向或知道它的人的幫助! – simple 2011-04-24 13:55:02

回答

0

嘗試:

RewriteCond %{REQUEST_FILENAME} ^/old/url/(.*)$ 
RewriteRule^/new-url/$1 [L,R=301] 
+0

不行不行!任何其他的想法? – simple 2011-04-24 13:54:20