0

迁移站点并尝试保留一些书签和搜索结果

旧网址

topic/0/14.php

新网址

Module/news/filter/topic^sub^10282/page1.htm

看起来这应该很简单,我试过但是

RewriteRule ^topic/0/14\.php /Module/news/filter/topic^sub^10282/page1.htm? [R=301,L]

导致重定向到

example.com/home/example/domains/public_html/Module/news/filter/topic^sub^10282/page1.htm

...换句话说,重定向包含完整的 URI,而不是来自根目录。

4

1 回答 1

0

你试过使用RewriteBase /吗?

看看http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase

麦克风。

于 2012-08-01T07:31:50.197 回答