Add login for Razer Forge TV
[stouyapi.git] / www / .htaccess
index 65fef1cd4ebc3303265b9a81467a37ec9aeaa5da..5ba02ede2a2243ba20f41878b70aa7a3a00caaa9 100644 (file)
@@ -1,6 +1,10 @@
 #no iso-2022-cn charset for "com.cis.ouya.oth.htm"
 #"RemoveCharset" does not work, so we have to override with AddCharset
 AddCharset UTF-8 .iso2022-cn .cis
+#Fix game/art.var.pgo.htm
+AddHandler default-handler .var
+
+DirectorySlash Off
 
 RewriteEngine on
 RewriteBase /
@@ -40,12 +44,19 @@ 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]
 
 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.json [END]
+
+RewriteRule ^api/v1/partner_builds$ /api/v1/partner_builds.json [END]
+
 #purchased games/products
 # active buy requests
 RewriteCond %{REQUEST_METHOD} POST