CodeIgniter Forums
Adding local external app - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Adding local external app (/showthread.php?tid=50668)



Adding local external app - El Forum - 04-03-2012

[eluser]jrock2004[/eluser]
I am sorry that I could not think of a better post title. I just started using ci and I love it. On my site I have an update folder that holds a totally different site. How would I do this? htaccess file? I want the user to go to domain.com/update. On old site it would come up, but with ci I am getting an error cause it is thinking that update is a controller. Thanks.


Adding local external app - El Forum - 04-03-2012

[eluser]skunkbad[/eluser]
Yes, .htaccess. You will want to tell the server that requests going to that sub-directory should not be sent through index.php.

Something like this:

Code:
RewriteCond %{REQUEST_FILENAME} !^update [NC]
RewriteRule .* index.php/$0 [PT,L]



Adding local external app - El Forum - 04-04-2012

[eluser]jrock2004[/eluser]
Tried, that and it breaking my site


Adding local external app - El Forum - 04-04-2012

[eluser]jrock2004[/eluser]
Ok, after doing a google search I figured out how to do this. Thanks Lab Tech for getting me in the right direction

Code:
RewriteCond %{REQUEST_FILENAME} ^update [NC]
RewriteRule .* index.php/$0 [PT,L]