CodeIgniter Forums
[SOLVED] What should be my main .htaccess to access both CI and non-CI apps? - 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: [SOLVED] What should be my main .htaccess to access both CI and non-CI apps? (/showthread.php?tid=5475)



[SOLVED] What should be my main .htaccess to access both CI and non-CI apps? - El Forum - 01-23-2008

[eluser]daBayrus[/eluser]
Heres my webroot structure:

/
.htaccess
CI-app1/
CI-app2/
CodeIgniter (this is CI's system folder)
index.php
non-CI-app1/
non-CI-app2/

here's the current .htaccess
Code:
Options +SymLinksIfOwnerMatch
    
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(non-CI-app1|non-CI-app2)
    RewriteRule ^(.*)$ ./index.php/$1 [L]
</IfModule>

I'am able to access both CI and non-CI apps but the images and CSS styles are not loaded for the non-CI apps. If I removed the .htaccess file, non-CI apps load just fine, which obviously means, I have no access for the CI apps.

Any ideas? Many thanks in advance...


[SOLVED] What should be my main .htaccess to access both CI and non-CI apps? - El Forum - 01-23-2008

[eluser]daBayrus[/eluser]
Solved it..


[SOLVED] What should be my main .htaccess to access both CI and non-CI apps? - El Forum - 01-24-2008

[eluser]wiredesignz[/eluser]
how did you solve it?