Welcome Guest, Not a member yet? Register   Sign In
Exclude htaccess effect for a subfolder containing CI application
#1

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

[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/

................................
#3

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

That is not the solution!




Theme © iAndrew 2016 - Forum software by © MyBB