I am trying to redirect all files except those in whitelist to 404 page.. but I can't find a way to add something like RewriteCond to my current htaccess code:
RedirectMatch 404 ^.*$
Now i want to add something like
RewriteCond %{REQUEST_URI} !\.(css|gif|jpg|js|png)$
though i know RewriteCond
is only for RewriteRule
can someone please help me?
So the question is, how can I achieve this?
thanks!