Our .htaccesss file has the following rules which is affecting access to our admin pages.
The rules are setup to allow something like the following:
http://www.example.com/en-gb/section/product/
#Most pages are caught by this so we can use the translated token stored in cms rather than having to fix here
RewriteRule ^([a-zA-Z]{2})-([a-zA-Z]{2})/([a-zA-Z0-9\-_]+)(/?)$ index.php?html/pages/$3 [L,NC]
#Product pages
RewriteRule ^([a-zA-Z]{2})-([a-zA-Z]{2})/([a-zA-Z0-9\-_]+)/([a-zA-Z0-9\-_]+)(/?)$ index.php?html/pages/$4 [L,NC]
#Product subscription pages
RewriteRule ^([a-zA-Z]{2})-([a-zA-Z]{2})/([a-zA-Z0-9\-_]+)/([a-zA-Z0-9\-_]+)/([a-zA-Z0-9\-_]+)(/?)$ index.php?html/pages/$5 [L,NC]
Unfortunately this is affecting the admin pages, e.g. http://www.example.com/en-gb/admin which is firing a 404.
Basically, is there any way to ignore the above rule if the path contains /admin?
I've tried a RewriteCond before the RewriteRule but it doesn't seem to be working.
Cheers!