Problem with mod_rewrite

Jinesh

Well-Known Member
#1
I have a problem with my site and have no ideas about how to solve it. In my root directory I have .htaccess file like this:

Options -Indexes
Options +FollowSymLinks
Options -MultiViews
AllowOverride None
RewriteEngine On
RewriteBase / https://19216801.onl/ https://routerlogin.uno/
RewriteCond %{HTTP_HOST} ^www.site.com$ [NC]
RewriteRule ^(.*)$ http://site.com/$1 [R=301,L]
RewriteCond $1 !^(index\.php|css|img|files|swf|js|forum)
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

So, we rewrite all requests except requests to several dirs to index.php. So, when I request site.com/forum or site.com/forum/admincp, everything is ok - there is no rewrite to index.php. But when I protect admincp with htaccess, root .htaccess starts to rewrite forum/admincp to index.php. Any ideas?
 
Top