![]() |
another 404 page not found error - 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: another 404 page not found error (/showthread.php?tid=25726) Pages:
1
2
|
another 404 page not found error - El Forum - 12-22-2009 [eluser]E.D. Leutscher[/eluser] Hi guys, I have a problem with my codeigniter application. Everything works on my home server with MAMP but when i upload it i get the '404 page not found' codeigniter error. Which doesn't make sense because of the fact that all my settings are right. When i look to my log files i see this error: DEBUG - 22-12-2009 17:07:55 --> Config Class Initialized DEBUG - 22-12-2009 17:07:55 --> Hooks Class Initialized DEBUG - 22-12-2009 17:07:55 --> URI Class Initialized ERROR - 22-12-2009 17:07:55 --> 404 Page Not Found --> portal I've found another user with a similar problem (http://ellislab.com/forums/viewthread/44894/) on this forum and I used his solution but it turned out it wasn't the solution for my problem because of the fact that he doesn't go further than loading the URI Class, so something is going wrong right there.. The problem is i don't know what it is. My application is running in the follwoing dir: http://my.domain.name/cms/ so that means that the system folders are here: http://my.domain.name/cms/system/ etc.etc.. Is there someone who knows what it is, or can someone get me in the right way? Thanks in advance another 404 page not found error - El Forum - 12-22-2009 [eluser]abmcr[/eluser] But the code of your controller? Are you sure the views file exist? another 404 page not found error - El Forum - 12-22-2009 [eluser]E.D. Leutscher[/eluser] Yup, that's all correct. On my home server everything works, but when i upload it the the public server with the right settings in place it doesn't. I did a little test, when i delete all the logic from the default controller and type in a test echo he even doesn't show that echo, so there's a problem with reaching the controller while it's there on the server another 404 page not found error - El Forum - 12-22-2009 [eluser]bretticus[/eluser] Please provide the URL of the MAMP working URL and the same URL that shows 404 Remotely. Check for .htaccess files and your application/config/config.php file for $config['index_page']. another 404 page not found error - El Forum - 12-22-2009 [eluser]E.D. Leutscher[/eluser] http://clubb.nl/cms/ If you go there you'll see the error directly. my config.php file looks as follows: Code: /* another 404 page not found error - El Forum - 12-22-2009 [eluser]bretticus[/eluser] What is default route under routes.php in the same folder? (ie. Code: $route['default_controller'] = "welcome"; another 404 page not found error - El Forum - 12-22-2009 [eluser]E.D. Leutscher[/eluser] Code: $route['default_controller'] = "portal"; and portal is an existing controller in the controller folder another 404 page not found error - El Forum - 12-22-2009 [eluser]bretticus[/eluser] [quote author="E.D. Leutscher" date="1261531208"] Code: $route['default_controller'] = "portal"; and portal is an existing controller in the controller folder[/quote] Does it not have an index method? http://clubb.nl/cms/index.php/portal/index gives a 404 as well. another 404 page not found error - El Forum - 12-22-2009 [eluser]E.D. Leutscher[/eluser] Yes the portal index method looks if the user is logged in and if not he redirects it to the users controller login method. But when you go to http://clubb.nl/cms/index.php/users/login you'll see it doesn't work as well, so there's clearly something wrong in the urls where codeigniter looks for but i can't figure out what.. another 404 page not found error - El Forum - 12-22-2009 [eluser]bretticus[/eluser] Have you tried experimenting with $config['uri_protocol'] settings? |