• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.