放在哪里.htaccess文件? [英] Where to put .htaccess file?
本文介绍了放在哪里.htaccess文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些设置,我想在.htaccess文件中使用。这些设置是一些功能在 /管理/工具
文件夹级别..但我想包括 /管理员
和 /
的位置为好。
我的问题是什么是把这个文件在??的最佳位置
感谢
更新
仅供参考。我想申请设置,如
最大文件上传大小
MAZ执行时间等
解决方案
在地方一般规则:
/的.htaccess
地点/管理/特定的规则:
/admin/.htaccess
地点/管理/工具/特定的规则:
/admin/tool/.htaccess
I have some settings which I want to use in .htaccess file. The settings are for some functionality at /admin/tool
folder level .. but I want to include some settings for /admin
and /
locations as well.
My question is what is the best location to put this file at??
Thanks
Update
Just fyi .. I want to apply settings like
max file upload size
maz execution time etc
解决方案
Place general rules in:
/.htaccess
Place /admin/ specific rules in:
/admin/.htaccess
Place /admin/tool/ specific rules in:
/admin/tool/.htaccess
这篇关于放在哪里.htaccess文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文