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