排除来自htaccess的文件夹 [英] Exclude folder from htaccess
本文介绍了排除来自htaccess的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网站,它使用的htaccess才能使用漂亮的URL。不过,我想htaccess的文件,以息事宁人整个文件夹和它的内容完全。我的htaccess文件的内容是:
I have a site which uses htaccess in order to use nice URLs. However I want the htaccess file to leave alone a whole folder and it's content completely. The content of my htaccess file is:
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
我应该如何完成上述code完全排除的文件夹命名为管理员
How should I complete the above code to EXCLUDE completely the folder named "admin"
提前感谢!
推荐答案
您也可以把一个新的.htaccess文件要忽略的文件夹中,他说:
You could also put a new .htaccess file in the folder you want to ignore, saying:
RewriteEngine Off
这篇关于排除来自htaccess的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文