From 2d8a7bf35fad7c3040785a4cd43bd13590085792 Mon Sep 17 00:00:00 2001 From: DJP Date: Thu, 8 Jan 2026 15:11:34 -0500 Subject: [PATCH] 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) --- .htaccess | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/.htaccess b/.htaccess index 9b487d4..77bb074 100644 --- a/.htaccess +++ b/.htaccess @@ -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 -# ============================================ - - - Require all denied - - -# ============================================ -# PROTECT .GIT DIRECTORY -# ============================================ - - - Require all denied -