2009-09-29, 00:08:36
Hi,
first, congratulations for your performance, GS is exactly what I was looking for. Really good job.
One small issue though : I would like to implement a personalized 404 error landing page. I came across several topics in the forum, but none describes precisely my state of mind.
Let me explain.
As far as I understood from the htaccess that was generated upon installation ( here it is :
) all unknown pages are being matched to their id. That's fine for internal navigation where ids are known and explicitly called. But what about external calls to pages that no longer exist ? The rewrite rule tries to match the file to an id, which doesn't exist, and displays a blank page ... :/
Even worse ( no offence, lol ), if I trust Firebug the header returns a 500 instead of a 404 ! Weird.
I tried to put an errorDocument command in the .htaccess file but with no effect ( it seems to be overridden by the rewriteurl statement )
Could somebody lighten my path there ?
first, congratulations for your performance, GS is exactly what I was looking for. Really good job.
One small issue though : I would like to implement a personalized 404 error landing page. I came across several topics in the forum, but none describes precisely my state of mind.
Let me explain.
As far as I understood from the htaccess that was generated upon installation ( here it is :
Code:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [L]
) all unknown pages are being matched to their id. That's fine for internal navigation where ids are known and explicitly called. But what about external calls to pages that no longer exist ? The rewrite rule tries to match the file to an id, which doesn't exist, and displays a blank page ... :/
Even worse ( no offence, lol ), if I trust Firebug the header returns a 500 instead of a 404 ! Weird.
I tried to put an errorDocument command in the .htaccess file but with no effect ( it seems to be overridden by the rewriteurl statement )
Could somebody lighten my path there ?
Black holes occur when God divides by zero