CodeIgniter Forums
External Programs - 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: External Programs (/showthread.php?tid=24199)



External Programs - El Forum - 11-03-2009

[eluser]bhbutter123[/eluser]
If I have most of my site run with codeigniter can I still use other programs with the site as well? For example, some of the programs I use I simply put into a subfolder of the site and then the url would look like http://somesite.com/external_program/index.php for the index page of the other application. With codeigniter rewriting the urls I am thinking I will not be able to do it, what do you think?


External Programs - El Forum - 11-03-2009

[eluser]clip[/eluser]
I believe this can be done, it only gets trick if you plan on removing the index.php from your urls with .htaccess. Even then you can still do it with a properly constructed .htaccess file. Only requests through the ci index.php file are handled by ci.


External Programs - El Forum - 11-03-2009

[eluser]pistolPete[/eluser]
You can exclude specific subfolders from rewriting in your .htaccess file: http://ellislab.com/codeigniter/user-guide/general/urls.html
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|add_your_subfolder_here)
RewriteRule ^(.*)$ /index.php/$1 [L]