开发者

.htaccess redirect doens't work correctly

开发者 https://www.devze.com 2023-01-21 13:48 出处:网络
I\'m using a .htaccess to get all documents from an old site to the new one. The old site doesn\'t support PHP or mod_rewrite. I tried the following code:

I'm using a .htaccess to get all documents from an old site to the new one. The old site doesn't support PHP or mod_rewrite. I tried the following code:

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

I re开发者_运维技巧quested " http://www.new.com/archive/index.html" Which resulted into

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

Is this possible to solve?


Can probable not be solved with .htaccess. Instead I used javascript. It's not good for SEO, but there seems to be no other way.

0

精彩评论

暂无评论...
验证码 换一张
取 消