Reset htacces for sub-folders

前端 未结 4 404
野趣味
野趣味 2021-01-04 19:04

I have a htacces file in my root folder with some basic code in it. But I want that all those instructions get ignored in the directory \"voxelforum.com\". How can I achive

4条回答
  •  逝去的感伤
    2021-01-04 19:37

    It depends on what rules you want to override:

    If you want to disable rewrite rules, then you can put a .htaccess file in the subfolder that contains RewriteEngine On, and the rules for the parent folder will be disabled (technically, replaced).

    Similarly, if you want to disable authentication for a subfolder, you can create a .htaccess that contains Satisfy Any.

    .htaccess rules cascade upwards, so Apache will look for a .htaccess file in the current folder and use the rules for it, then check the parent folder, etc.

提交回复
热议问题