CodeIgniter Forums
cannot load default controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: cannot load default controller (/showthread.php?tid=66300)



cannot load default controller - fablab.rhyan - 10-06-2016

hi,
my codeigniter is placed in a subfolder.
when im trying to load it.

www.website.com/ci <-- it gives me 404 error
but when i did this
www.website.com/ci/welcome <-- it display the page.

.htaccess

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule>

thanks


RE: cannot load default controller - InsiteFX - 10-06-2016

Did you edit the index.php file and point the application and system paths to the sub folder?