CodeIgniter Forums
Exclude htaccess effect for a subfolder containing CI application - 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: Exclude htaccess effect for a subfolder containing CI application (/showthread.php?tid=58724)



Exclude htaccess effect for a subfolder containing CI application - El Forum - 07-12-2013

[eluser]WebMada[/eluser]
Hi!

I install my CodeIgniter application for backoffice of a PHP website on a subfolder of this latter. But the CI application one does not work because the root htaccess affects the subfolder.

The root htaccess contains many SetEnvIf Request_URI, RewriteCond+RewriteRule!
For your information, the PHP version of the server is 5.2.17 and I use CodeIgniter 2.1.0 for the application in the subfolder.

I test many things:

RewriteRule ^(adminspace)($|/|.+) - [L]

and after

RewriteCond %{REQUEST_URI} !^adminspace/

But they don't apply! Why?

Do you have other solution please?


Exclude htaccess effect for a subfolder containing CI application - El Forum - 07-12-2013

[eluser]Ckirk[/eluser]
did you also set the following line in your htaccess file in thesubdirectory:

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /your_ci_directory/

................................



Exclude htaccess effect for a subfolder containing CI application - El Forum - 07-15-2013

[eluser]WebMada[/eluser]
Obviously, I set RewriteEngine to On and I set the RewriteBase like that.

That is not the solution!