Hi all,
This seems so simple, but I can't figure it out... I would like all requests to be rewritten to index.php (which will interpret the request) apart from 404.html which should be rewritten directly to 404.php.
The following code does work at rewriting everything to index.php, but 404.php never gets triggered.
I have left line 3 commented because I don't know what it does.
Options +FollowSymlinks
RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^404.html$ 404.php [L]
RewriteRule ^(.*)$ index.php [QSA]
As you can see, my needs are very simple, but so is my brain! Please help!
Thanks.
EDIT
This line works fine on its own:
RewriteRule ^404.html$ 404.php
but when the other RewriteRule is introduced, everything gets forced through index.php - even 404.html...... (I tried changing the order too).