CodeIgniter Forums

Full Version: 404 but what page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]wojtekk[/eluser]
Hi i made today backup of page that were created with codeigniter.
And i find that logs r full of 404 error like
Code:
ERROR - 2007-10-09 11:00:24 --> 404 Page Not Found -->

so i thought that something dont work but i didnt find,
how can i log what page make 404?

El Forum

[eluser]Doncqueurs[/eluser]
Hmm... maybe you can create a little script that tracks the URL of every request and finds out whether this page exists or not. This script you could for example place in the 404 page.

El Forum

[eluser]wojtekk[/eluser]
i make more study and i think all my pages makes 404 error
why???????????? they appear normal


50kb of errors every day sucks :long:

El Forum

[eluser]Derek Allard[/eluser]
Are you using any custom routes? Are you doing any url re-writing?

El Forum

[eluser]wojtekk[/eluser]
yup
in htacess
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|css|images|js|downloads)
RewriteRule ^(.*)$ index.php/$1 [L]

and in routes things like that, so controller know which action use and when to make redirect from old version to new one of page
Code:
$route['kontakt(.*)'] = "strona/contact";


but everything work, just those 404 dunno why appear in log

El Forum

[eluser]wojtekk[/eluser]
ok wrong path to favicon.ico

didnt know that codeigniter can log such things