![]() |
Strange behavior with routes - 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: Strange behavior with routes (/showthread.php?tid=32223) |
Strange behavior with routes - El Forum - 07-16-2010 [eluser]fauria81[/eluser] Hi everybody! Im experiencing a strange behavior with CI's routes. I have something like this in my config.php: Code: $config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/foo/'; And my routes.php looks like this: Code: switch($_SERVER['HTTP_HOST']) When i point at Code: http://www.example.com/ When i use Code: http://www.example.com/foo/bar Using Code: http://www.example.com/foo/baz But whenever i try Code: http://www.example.com/foo/foo Any one knows why is this happening? Thank you very much! Strange behavior with routes - El Forum - 07-16-2010 [eluser]danmontgomery[/eluser] foo/foo implies that you are trying to call the constructor, which doesn't work. |