Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] What should be my main .htaccess to access both CI and non-CI apps?
#1

[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...
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB