Apply rewrite rule if url not contains certain path
snippet in htaccess

Apply rewrite rule if url not contains certain path

user2231

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(old|images)/ [NC]
RewriteRule . /index.html  [L]