Only redirect valid asset tags

This commit is contained in:
Adam Goldsmith 2020-07-11 01:26:47 -04:00
parent ff2bb11a72
commit feb9d036b8

View File

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