试试这个代码:
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
.