CodeIgniter Forums
404 but what page? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 404 but what page? (/showthread.php?tid=3535)



404 but what page? - El Forum - 10-09-2007

[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?


404 but what page? - El Forum - 10-09-2007

[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.


404 but what page? - El Forum - 10-09-2007

[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:


404 but what page? - El Forum - 10-09-2007

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


404 but what page? - El Forum - 10-11-2007

[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


404 but what page? - El Forum - 10-15-2007

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

didnt know that codeigniter can log such things