0

我想指出

http://example.com/folder1/folder2/folder3/index.php

http://example.com/folder1/folder2/index.php

任何人都可以帮助我吗?

4

1 回答 1

0

试试这个代码:

RewriteRule ^folder1/folder2/folder3/(.*)$ http://{%HTTP_HOST}/folder1/folder2/$1 [L]


此代码从:重定向folder1/folder2/folder3/another_foler/or_another_file.php?and=get
到: folder1/folder2/another_foler/or_another_file.php?and=get

所以相同的链接,但没有folder3.

于 2012-09-12T14:24:06.240 回答