RewriteEngine On
RewriteRule ^([^/]+)/?$ ../index.php?reseller_key=$1 [QSA,L]
RewriteRule ^([^/]+)/theme\.php$ ../theme.php?reseller_key=$1 [QSA,L]
RewriteRule ^([^/]+)/branding\.php$ ../branding.php?reseller_key=$1 [QSA,L]
RewriteRule ^([^/]+)/branding/image\.php$ ../branding/image.php?reseller_key=$1 [QSA,L]
RewriteRule ^([^/]+)/device/(register|resolve|update)\.php$ ../device/$2.php?reseller_key=$1 [QSA,L]
