Page 1 of 1

Make .htaccess files compatible wiht Apache 2.4

Posted: 20 Feb 2024, 16:55
by rorosa
You can use this kind of condition to make the .htaccess files compatible between different versions of Apache:
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</ifModule>