RewriteEngine on RewriteCond %{HTTP_HOST} ^inv\.claremontmakerspace\.org$ RewriteRule ^(CMS[0-9]{5})$ https://inv.claremontmakerspace.org/index.html?$1 [R,L] RewriteRule ^$ https://inventory.claremontmakerspace.org/ [R,L]