Hey @josh_smith2
Try once following rule:
RewriteEngine On
RewriteBase /
# Testing if `admin` then if so, stop rewrite rules, you can change here you admin path
RewriteRule (.*)/office(.*) - [QSA,L,NC]
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
OR Modified your code:
# Redirect the all pages to homepage
RewriteEngine On
RewriteCond %{REQUEST_URI} !/$ [NC]
RewriteCond %{REQUEST_URI} !.(css|fonts|gif|jpe?g?|png|ico) [NC]
RewriteRule ^(.*)$ / [R=302,L]
RewriteRule !^office / [L,NC,R=302]