.htaccess重定向无法正常工作

时间:2010-10-24 19:56:19

标签: apache .htaccess mod-rewrite redirect

我正在使用.htaccess将所有文档从旧网站获取到新网站。旧站点不支持PHP或mod_rewrite。我尝试了以下代码:

Redirect 301 / http://www.new.com/archive/

我要求“http://www.new.com/archive/index.html” 这导致了

http://www.new.com/archive/old.com/olddir/&&&/&&&/users/4/web/00/00/24/04/44/&&&/1/&&&/0/&&&/&&&/&&&/users/4/web/00/00/24/04/44/&&&/1/&&&/0/&&&/index.html

这可以解决吗?

1 个答案:

答案 0 :(得分:0)

很可能无法用.htaccess解决。相反,我使用了javascript。这对SEO来说并不好,但似乎没有别的办法。

相关问题