Hello, I'm trying to redirect all requests to one particular file. I have this in my .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ /for-all-requests.php [NC,L]
It works when the file being requested doesn't exist (works as in, the for-all-requests.php is accessed). But when the file being requested exists, the response is the file stated in the user's request, not the for-all-requests.php file. How to make *all* requests go to /for-all-requests.php ?
Thanks.