![]() |
Trailing Slash (Front & Back) Sharing libs and models - 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: Trailing Slash (Front & Back) Sharing libs and models (/showthread.php?tid=9042) |
Trailing Slash (Front & Back) Sharing libs and models - El Forum - 06-09-2008 [eluser]Ignacio[/eluser] Code: system/application/controllers I have a problem with the trailing slash!!!!! I'm using all the CI on subfolders, but I don't know if that a problem here. Check my example. site.com/clients/client/ -> frontend site.com/clients/clients/admin/ > backend site.com/clients/client -> without "/" the system add it automatically, so, it works fine site.com/clients/client/admin -> without "/" isn't work I'm using ElliotHaughin's htaccess with just a line change: Code: RewriteBase /clients/client/ Maybe you don't like my structure, but it work fine for me on small apps. Any ideas? Trailing Slash (Front & Back) Sharing libs and models - El Forum - 06-09-2008 [eluser]sikkle[/eluser] Humm copy here the .htaccess file, and also your routes. Will start by that. Trailing Slash (Front & Back) Sharing libs and models - El Forum - 06-09-2008 [eluser]Ignacio[/eluser] Routes Code: $route['default_controller'] = "main"; //home frontend .htaccess Code: <IfModule mod_rewrite.c> Trailing Slash (Front & Back) Sharing libs and models - El Forum - 06-10-2008 [eluser]Ignacio[/eluser] Ok, talking with sikkle and wiredesignz[h], my idea was a mess, so I did it with http://ellislab.com/codeigniter/user-guide/general/managing_apps.html for two separate apps. Structure Code: .htaccess Important, check this file: admin/index.php #26 Code: $system_folder = "../system"; I don't know if doing that is secure or not, but it works great. Thanks folks. |