another 404 page not found error |
[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
[eluser]abmcr[/eluser]
But the code of your controller? Are you sure the views file exist?
[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
[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'].
[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: /*
[eluser]bretticus[/eluser]
What is default route under routes.php in the same folder? (ie. Code: $route['default_controller'] = "welcome";
[eluser]E.D. Leutscher[/eluser]
Code: $route['default_controller'] = "portal"; and portal is an existing controller in the controller folder
[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.
[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..
[eluser]bretticus[/eluser]
Have you tried experimenting with $config['uri_protocol'] settings? |
Welcome Guest, Not a member yet? Register Sign In |