Apache show a default image when there is a 404 error under a specific URL pattern
snippet in htaccess

Apache show a default image when there is a 404 error under a specific URL pattern

user4351

RewriteCond %{REQUEST_URI} ^/assets/user-images/(.*)\.jpg$ 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ default.jpg