Is there a way to refactor this to use the same rule? I have a production site and a staging test site.
test site
RewriteCond %{HTTP_HOST} ^test.example.com$
RewriteCond %{REQUEST_URI} admin
RewriteRule ^(.*)$ test-admin.blurb.com$1 [L]
production site
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} admin
RewriteRule ^(.*)$ admin.example.com$1 [L]