404 problems - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: 404 problems (/showthread.php?tid=5048) |
404 problems - El Forum - 01-02-2008 [eluser]Kurai[/eluser] Hi! There seems to be a problem with 404 error pages on my codeigniter site. It seems not to get 404 error page correctly. When I try to access a nonexistent page, I get this message instead the default 404 CI page: Quote:Not Found What should the problem be? Thank you! 404 problems - El Forum - 01-02-2008 [eluser]Craig A Rodway[/eluser] Are you using mod_rewrite in .htaccess? If so could you post its contents as that's where the problem could be. 404 problems - El Forum - 01-02-2008 [eluser]Sawariya[/eluser] check your .htaccess file... RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^(index\.php|check_images|js|css) RewriteRule ^(.*)$ index.php/$1 [L] 404 problems - El Forum - 01-03-2008 [eluser]Kurai[/eluser] Now that's funny. I'm not using mod_rewrite. I tried yours, and works perfectly. thanks. 404 problems - El Forum - 01-03-2008 [eluser]John_Betong[/eluser] [quote author="Kurai" date="1199373479"]Now that's funny. I'm not using mod_rewrite. I tried yours, and works perfectly. thanks.[/quote] Hurray, eventually cleared a problem after a hard-disk crash. The problem was that Wamp5 requires the #rem removing from the following default Apache config file: httpd.conf Code: # LoadModule rewrite_module modules/mod_rewrite.so Cheers, John_Betong 404 problems - El Forum - 01-04-2008 [eluser]Craig A Rodway[/eluser] Just an FYI with WAMP: Instead of editing conf files, you can enable/disable Apache modules and PHP extensions using it's tray icon menus. |