404

Permalink
I have read the threads about 404 errors, but what I would like to do is to bypass concrete handling og page not found and point to a static page. We were having an issue of a missing image on site and concrete getting bogged down trying to server that 404 page.

We were essentially creating our own DOS attack. I have tried to modify the .htaccess file but it still defaults to the concrete page not found. Does anyone know how to do this?

ewaite
 
ewaite replied on at Permalink Reply
ewaite
I made a change to .htaccess to at least handle any non-found file with a period hit an html 404 page. This will handle any file that has a missing included file, js,php,jpeg etc... It will not handle a directory that is invalid.

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        ErrorDocument 404 /404.html
        RewriteCond %{REQUEST_URI} !^/(.*\.)
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Mnkras replied on at Permalink Reply
Mnkras
just so you know the code tags are [code] and [ /code] (stuck in a space)
ewaite replied on at Permalink Reply
ewaite
thx fixed code tags