return unknown.webp file if the requested file does not exist

This commit is contained in:
2024-04-23 11:14:54 +10:00
parent 79fb978127
commit 2a1db0b088

View File

@@ -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]