Php .htaccess将三级文件夹文件内容获取到二级文件夹文件
我想指出 到 有人能帮我吗?试试下面的代码:Php .htaccess将三级文件夹文件内容获取到二级文件夹文件,php,.htaccess,mod-rewrite,Php,.htaccess,Mod Rewrite,我想指出 到 有人能帮我吗?试试下面的代码: RewriteRule ^folder1/folder2/folder3/(.*)$ http://{%HTTP_HOST}/folder1/folder2/$1 [L] 此代码重定向 from:folder1/folder2/folder3/other\u foler/or\u other\u file.php?and=get 到:folder1/folder2/other\u foler/or\u other\u file.php?和=ge
RewriteRule ^folder1/folder2/folder3/(.*)$ http://{%HTTP_HOST}/folder1/folder2/$1 [L]
此代码重定向from:
folder1/folder2/folder3/other\u foler/or\u other\u file.php?and=get
到:
folder1/folder2/other\u foler/or\u other\u file.php?和=get
同样的链接,但是没有folder3