Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

# Redirect monjodev.stearns.digital to itself (HTTPS)

RewriteCond %{HTTP_HOST} ^monjodev\.stearns\.digital$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ <https://monjodev.stearns.digital/$1> [L,R=301]

# Redirect monjoapi.stearns.digital to itself (HTTPS)

RewriteCond %{HTTP_HOST} ^monjoapi\.stearns\.digital$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ <https://monjoapi.stearns.digital/$1> [L,R=301]

# Redirect monjomerchants.stearns.digital to itself (HTTPS)

RewriteCond %{HTTP_HOST} ^monjomerchants\.stearns\.digital$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ <https://monjomerchants.stearns.digital/$1> [L,R=301]

# Existing conditions for other subdomains

RewriteCond %{HTTP_HOST} !^monjoapi\.stearns\.digital$ [NC]
RewriteCond %{HTTP_HOST} !^monjodev\.stearns\.digital$ [NC]
RewriteCond %{HTTP_HOST} !^monjomerchants\.stearns\.digital$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?allnetworks.stearns\.digital$ [NC]

# Existing rewrite rule

RewriteRule ^(.*)$ <https://stearns.digital/wildbobby%{REQUEST_URI}> [P]
