我想指出
http://example.com/folder1/folder2/folder3/index.php
到
http://example.com/folder1/folder2/index.php
任何人都可以帮助我?
答案 0 :(得分: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
。