I have the following rule:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)(?:/([^/]+))?/?$ index.php?a=$1&b=$2 [QSA]
This rule redirect all requests to my index.php and works like a charm. Now I would like to ADD another rule that redirect all requests for the directory /admin/ to admin.php in root. (A request for www.mysite.de/admin/login should end in www.mysite.de/admin.php?a=login&b=) The second parameter b should be optional. How to reach this? Thx for any hint in advance.