Exclude htaccess for admin folder

橙三吉。 提交于 2020-01-06 08:23:14

问题


  1. How to disable .htaccess for some folders?
  2. Example I want exclude htaccess for my admin folder
  3. Let me know..

回答1:


You could use this rule to stop the rewriting process for that specific URL path prefix:

RewriteEngine on
RewriteRule ^admin($|/) - [L]



回答2:


you can do something like that in your httpd.conf

<Location /admin>
 AllowOverride None
</Location>

see the documentation here



来源:https://stackoverflow.com/questions/1715785/exclude-htaccess-for-admin-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!