Minimal .htaccess with only directory browsing disabled

Reduced to absolute minimum to avoid Apache compatibility issues:
- Only contains: Options -Indexes
- Removed all Require directives that need Apache 2.4+
- Removed DirectoryMatch that might not be supported
- Works even if AllowOverride is limited

If this still causes 500 error, user needs to enable AllowOverride All
in Apache site configuration.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
DJP 2026-01-08 15:11:34 -05:00
parent bc777a1bbb
commit 2d8a7bf35f

View file

@ -1,29 +1,2 @@
# AI Tools Usage Report System - Apache Configuration
# ============================================
# DISABLE DIRECTORY BROWSING
# ============================================
# Disable directory browsing
Options -Indexes
# ============================================
# DEFAULT DOCUMENT
# ============================================
DirectoryIndex report.php index.php index.html
# ============================================
# PROTECT .ENV FILES
# ============================================
<FilesMatch "^\.env">
Require all denied
</FilesMatch>
# ============================================
# PROTECT .GIT DIRECTORY
# ============================================
<DirectoryMatch "\.git">
Require all denied
</DirectoryMatch>