I am attempting to send page asked for via a front controller.

I have to match the next web addresses


however i also provide some assets within the /admin subfolder which i Shouldn't match


I've written the next rule (inside .htaccess within the cause of the website which works best for all 5 example Web addresses. How do you have it to complement the very best two ONLY?)

RewriteBase / 
# index.php is the front controller
RewriteRule ^(admin) admin/index.php [L,QSA] 

You will find two ways I can tell to do this (Let me understand how to get it done while using folder 'assets' and 'xml' being an exclusion By setting extensions)

I'd use an adverse RewriteCond prior to the final routing rule along wrinkles:

RewriteCond %{REQUEST_URI} !assets