Try this rule before your other rules:
RewriteRule ^(admin|user)($|/) - [L]
This will end the rewriting process.
More Related Contents:
- htaccess rewrite breaks relative paths
- .htaccess not working on localhost with XAMPP
- htaccess code to remove extension AND add+force trailing slash?
- Using mod rewrite to change URL with username variable
- Preserve HTTP/HTTPS protocol in .htaccess redirects
- URL rewrite with .htaccess for wildcard domain
- URL rewriting with PHP
- URL rewriting : css, js, and images not loading
- How to write htaccess rewrite rule for seo friendly url
- Header set Access-Control-Allow-Origin in .htaccess doesn’t work
- symfony2 rewrite rules .htaccess app.php
- What exactly does the Multiviews options in .htaccess?
- Remove .php extensions with .htaccess without breaking DirectoryIndex
- Remove .php from urls with htaccess
- How to remove index.php from URLs?
- Mod Rewrite redirect URL with query string to pretty url
- .htaccess rewrite “/book.php?id=1234” to “/book/1234”
- .htaccess Remove WWW from URL + Directories
- .htaccess rewrite image file to php script
- htaccess 301 redirect – Remove query string (QSA)
- Best Practice: 301 Redirect HTTP to HTTPS (Standard Domain)
- ‘hash’ url rewrite in .htaccess
- .htaccess redirect all pages to the homepage on a new domain
- How to use .htaccess in WAMP Server?
- How to exclude a specific file from a rewriterule
- Reference capture groups of multiple RewriteCond in RewriteRule
- RewriteCond to match query string parameters in any order
- URL rewriting for different protocols in .htaccess
- The Redirection of Multiple Parked Domains doesn’t Work with Filename [closed]
- Set RewriteBase to the current folder path dynamically