php - Make HTACCESS to not be applied for some subfolders -
i using htaccess application.
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule>
any url type in browser, if respective file doesn't exist, open index.php.
the problem have many applications installed on same domain.
for example, root contains index.php file , htaccess above.
i have also, /store, contains index.php file , htaccess above, too, when access /store/something opens index.php of root (not correct /store/index.php
how can solve problem (how make htaccess of root not override htaccess of /store)? thanks!
you can have skip directory rule skip directories:
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / # skip index.php , directories rewriterule ^(store/|site1/|site2/|index\.php$) - [nc,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule>
Comments
Post a Comment