Add login for Razer Forge TV
[stouyapi.git] / www / .htaccess
index e016d55e0def48c83a748338b8d42063537ad0b3..5ba02ede2a2243ba20f41878b70aa7a3a00caaa9 100644 (file)
@@ -4,6 +4,8 @@ AddCharset UTF-8 .iso2022-cn .cis
 #Fix game/art.var.pgo.htm
 AddHandler default-handler .var
 
+DirectorySlash Off
+
 RewriteEngine on
 RewriteBase /
 
@@ -42,7 +44,8 @@ RewriteRule ^api/v1/gamers$ /api/v1/gamers/register-error.json [R=400,END]
     DirectorySlash Off
 </Files>
 
-#Disable the next two lines to have static usernames only
+#Disable the next three lines to have static usernames only
+RewriteRule ^api/razer/session$ /api/razer/session.php [END]
 RewriteRule ^api/v1/gamers/me$ /api/v1/gamers/me.php [END]
 RewriteRule ^api/v1/sessions$ /api/v1/sessions.php [END]
 
@@ -50,7 +53,9 @@ RewriteRule ^api/v1/gamers/me$ /api/v1/gamers/me.json [END]
 
 #partner builds
 RewriteCond %{HTTP_USER_AGENT} "razer/pearlyn/pearlyn"
-RewriteRule ^api/v1/partner_builds /api/v1/partner_builds.razer-forge-tv [END]
+RewriteRule ^api/v1/partner_builds$ /api/v1/partner_builds.razer-forge-tv.json [END]
+
+RewriteRule ^api/v1/partner_builds$ /api/v1/partner_builds.json [END]
 
 #purchased games/products
 # active buy requests