How to completely disable .htaccess via DirectAdmin interface?

youds

Verified User
Joined
Jul 11, 2008
Messages
492
Location
Lancashire, UK
Hi

I want to use "AllowOverride None" in DirectAdmin HTTPD Configuration for a domain. I go to CUSTOM3 (the only place it can be entered) but it is then over-ridden by other values in the config.

Any ideas?
 
I did this:

Code:
Require all granted
AllowOverride None
Options +Indexes

In CUSTOM3, followed by:
Code:
<Files ?*>
    SetHandler default-handler
</Files>

In CUSTOM4.
 
Sooo just to reach out for someone who is doing the same or maybe someone who can offer a solution, I require index.php in the root of the domain to execute but all subfolders must not parse PHP. The below works (yay) but unfortunately Apache delivers 404 for folders without trailing slash. Very annoying and crucial really as people sometimes memorise links and could easily fall into the 404 and not check for a slash for the directory path.

<Files ?*> SetHandler default-handler </Files> <If "%{REQUEST_URI} =~ m#^/[^/]+(\.php)$#"> SetHandler "proxy:unix:/usr/local/php81/sockets/mirrors.sock|fcgi://localhost" </If>

Any ideas?
 
Back
Top