Only Default controller loads, CI 2.1.2, php 5.3.15 - 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: Only Default controller loads, CI 2.1.2, php 5.3.15 (/showthread.php?tid=60198) |
Only Default controller loads, CI 2.1.2, php 5.3.15 - El Forum - 02-04-2014 [eluser]Unknown[/eluser] As the title say, i have a problem that only the default controller is loading, I've developed a project on CI 2.1.2 and tried to put it on a server with php 5.3.15. But no luck,, It always loads the default controller. Something important to know is that IC runs on a subfolder or Subdomain. for any more information, i have an extended post on StackOverflow.com. But due though little views i thought to ask it at the developers core of code igniter, here on ellislab! SO Reference: http://stackoverflow.com/questions/21540508/codeigniter-always-load-default-controller-on-subdomain-or-subfolder I'll provide all requested information to solve this! any idea is welcome! EDIT: Added additional information My Settings: Code: $config['uri_protocol'] = "REQUEST_URI"; Code: $config['base_url']= 'http://klanten.mywebsite.nl/'; My htaccess: Code: DirectoryIndex index.php Only Default controller loads, CI 2.1.2, php 5.3.15 - El Forum - 02-04-2014 [eluser]noideawhattotypehere[/eluser] what do u mean only default controller loads? what happens when you try to point to other url? (not default controller/method) Only Default controller loads, CI 2.1.2, php 5.3.15 - El Forum - 02-04-2014 [eluser]Unknown[/eluser] Every url i navigate to responds with the same view/code from Defaultcontroller/index For example. So if i go to mywebsite.com/CIfolder/DefaultController/index, I get Welcome to the homepage. If i go to mywebsite.com/CIfolder/Login/index i get also: Welcome to the homepage.. When it should be: Login here.. Only Default controller loads, CI 2.1.2, php 5.3.15 - El Forum - 02-04-2014 [eluser]noideawhattotypehere[/eluser] Try this .htaccess and tell me if this helps Code: RewriteEngine on |