Problem with htaccess subfolder |
Hi everbody,
I face to a problem with my subfolder who has my environnement dev online. my htaccess on "/": (mydomain/.htaccess) Code: <IfModule mod_rewrite.c> in my subfolder "preprod" (mydomain/preprod/.htaccess) Code: <IfModule mod_rewrite.c> My issue : when i go on mydomain/eg => it's ok when i go on mydomain/preprod/ => ok with my ressources but when go on mydomain/preprod/othercontroller => my view is not find My question is : what is the problem with my htaccess on "preprod" Thanks a lot
using following code you can call subfolder
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] <IfModule mod_rewrite.c> RewriteEngine on # # stuff to let through (ignore) RewriteCond %{REQUEST_URI} "/folder1/" [OR] RewriteCond %{REQUEST_URI} "/folder2/" RewriteRule (.*) $1 [L] # </IfModule> |
Welcome Guest, Not a member yet? Register Sign In |