htaccess redirect but exclude images
snippet in htaccess

htaccess redirect but exclude images

user8846

# Turn rewriting on
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

#if the request does not end with test.html or is not a .png
RewriteCond %{REQUEST_URI} !(test\.html|\.png)$ [NC]
# Rewrite it to test.html
RewriteRule .* /test.html  [L]