Dave Jarvis' Repositories

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

Redirects without changing URL

AuthorDaveJarvis <email>
Date2023-11-08 19:09:27 GMT-0800
Commit1b6d30c96c510b57e943adedb2e21952bf4fac93
Parent72ca5f5
Delta5 lines added, 1 line removed, 4-line increase
www/downloads/.htaccess
-RedirectMatch 302 \.(test)$ download.php?filename=$0
+RewriteEngine On
+RewriteCond %{REQUEST_URI} !^.*\.(test)$ [NC]
+RewriteRule ^(.+)$ download.php?filename=$1 [L,QSA]
+
+#RedirectMatch 302 \.(test)$ download.php?filename=$0
#RedirectMatch 302 \.(zip|app|bin|exe|jar)$ ./download.php?filename=$0