Welcome Guest, Not a member yet? Register   Sign In
Only default controller is working
#1

Hi everyone!
From years I've been using CodeIgniter 2 and it's very well.
Yesterday I started a new project with PHP 7 and I read it's better to use CodeIgniter 3. 
I installed CodeIgniter 3 but is loading the default controller always, but the others controllers doesn't work....

I changed my htacces but doesn't work....
<IfModule mod_rewrite.c>
RewriteEngine On

#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>


Has Anyone an idea? Thanks.
Reply
#2

Did you check your routes file?

You may need to create routes for the url's, also the default controller should not be
in a sub folder.

Also all controllers and libraries need to have the first character upper case when saving them to disk.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB