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