Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Fixes .htaccess errors

AuthorDaveJarvis <email>
Date2023-11-08 23:09:32 GMT-0800
Commit95cdcb0b0991d1dd10c025d5e85f9a11aa64490e
Parent724fc24
www/downloads/.htaccess
RewriteEngine On
-# Exclude existing files and directories from the rewrite rule.
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
+# Ensure the file exists before attemping to download it.
+RewriteCond %{REQUEST_FILENAME} -f
# Rewrite requests for file extensions to track.
-RewriteRule ^([^/]+\.(test))$ counter.php?filename=$1 [L]
-#RewriteRule ^([^/]+\.(zip|app|bin|exe|jar))$ counter.php?file=$1 [L]
+RewriteRule ^([^/]+\.(zip|app|bin|exe|jar))$ counter.php?filename=$1 [L]
</IfModule>
Delta3 lines added, 5 lines removed, 2-line decrease