I use these rules:
RewriteEngine on
RewriteRule ^robots.txt$ - [L]
RewriteRule ^favicon.ico$ - [L]
RewriteRule ^([^(/\.)]+)/([^(/\.)]+)/([^(/\.)]+)/([^(/\.)]+)/?$ index.php?id=$1&id2=$2&id3=$3&id4=$4 [QSA,L]
RewriteRule ^([^(/\.)]+)/([^(/\.)]+)/([^(/\.)]+)/?$ index.php?id=$1&id2=$2&id3=$3 [QSA,L]
RewriteRule ^([^(/\.)]+)/([^(/\.)]+)/?$ index.php?id=$1&id2=$2 [QSA,L]
RewriteRule ^([^(/\.)]+)/?$ index.php?id=$1 [QSA,L]
on my web presentation works well, but when I want to go to admin section and type just /admin, so I am redirected to admin/?id=admin (bad page) – for the displaying log-in form, I have to type /admin/index.php instead of simple admin.
Could you help me, how to fix that?
Thanks
So, I solved that by this way: