When trying to access this url:
http://example.com/lyceum/mySlug/admin/admin.php?import=rss
mod_rewrite intercepts it and destroys it:
rewrite wp-admin/admin.php -> wp-admin/.php?b=wp-admin&b=mySlug&import=rss
The thing is, I thought Lyceum's mod_rewrite rules would skip over any and all requests for files that actually exist, which is the case here.
Requesting a "vanilla" url (actual directory path to admin.php):
http://example.com/lyceum/wp-admin/admin.php?b=mySlug&import=blogger
results in the same problem.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^profile/? wp-admin/profile.php?%{QUERY_STRING} [L]
RewriteRule ^login/? wp-login.php?%{QUERY_STRING} [L]
RewriteRule ^register/? wp-register.php?%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9_-]+)/admin/?$ wp-admin/index.php?b=$1&
RewriteRule ^([^/]+)/admin/?([^/]+php)\??(.*) wp-admin/$2?b=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
### do we need these two conditions? ###
RewriteCond %{REQUEST_URI} !^(.+)/admin(.*)
RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*)
RewriteRule ^([A-Za-z0-9_-]*)/? /index.php?b=$1 [L,QSA]