Problem with htaccess subfolder - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Problem with htaccess subfolder (/showthread.php?tid=72022) |
Problem with htaccess subfolder - devop - 10-26-2018 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 RE: Problem with htaccess subfolder - Gurutechnolabs - 11-19-2018 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> |