A client site of mine is using the 404 redirect trick to handle virtual pages. eg domain.com/mypage.html doesn't exist.. so it goes to the 404 script and queries the database for mypage.html and displays the info and template.
Is there any way to prevent the server from logging a 404 error when this happens? The reason I ask is because the log file gets too big too fast and eventually crashes the server.
I know it could be done with mod_rewrite, but as far as I know the pages would have to start with something common to be able to detect them.. like..
Code: Select all
rewriteEngine On
rewriteRule ^something/(.+).html$ /script.php?page=$1What about PHP header() ?
Is this avoidable at all (without changing the 404 redirect trick setup)?