From 2a1db0b088960e00fc1e39051635100f7b2a691d Mon Sep 17 00:00:00 2001 From: James Collins Date: Tue, 23 Apr 2024 11:14:54 +1000 Subject: [PATCH] return unknown.webp file if the requested file does not exist --- public/thumbnails/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 public/thumbnails/.htaccess diff --git a/public/thumbnails/.htaccess b/public/thumbnails/.htaccess new file mode 100644 index 0000000..46a1041 --- /dev/null +++ b/public/thumbnails/.htaccess @@ -0,0 +1,5 @@ +RewriteEngine On +# Check if the requested file does not exist +RewriteCond %{REQUEST_FILENAME} !-f +# If it doesn't exist, serve the unknown.webp file +RewriteRule ^.*$ /path/to/unknown.webp [L]