Welcome Guest, Not a member yet? Register   Sign In
All my non-routed methods return 404
#1

[eluser]Fabdrol[/eluser]
Hi guys,

I'm using CI 2.0 beta on Nginx, and I've set up a few rewriting rules so that I don't have to display index.php in my url.

the controllers:
- home controller
- web controller
- misc controller

using routes.php I normalize some of the urls:
Code:
$route['default_controller']     = "home";
$route['web/(:num)/(:any)']     = "web/page/$2/$1";
$route['web/(:any)']         = "web/page/$1";
$route['misc/(:num)/(:any)']     = "misc/page/$2/$1";
$route['misc/(:any)']         = "misc/page/$1";

These are all well. I can access them like this: domain.com/web/page_name and it loads like a charm. However, somehow I cannot access the methods in the Home controller...

domain.com/home - works
domain.com/home/ - works
domain.com/home/index - works
domain.com/home/index/ - works

but

domain.com/home/method_name - 404 error
domain.com/home/mothod_name/param/param2 - 404 error

What should I do? I'm completely out of options...

Thanks in advance!
#2

[eluser]coldfire82[/eluser]
I have the same issue. Did you solved it?
#3

[eluser]Fabdrol[/eluser]
eventually, yes. I've completely rewritten the config for Nginx, and suddenly it did work. However, I don't know (still!) what did the trick!




Theme © iAndrew 2016 - Forum software by © MyBB