release notes ("Update notes") for razer forge tv
[stouyapi.git] / www / .htaccess
index 2c5ece0d51c92e38fb5366b3a522d36f2733dab7..8a9dc04187e7685c1c5111a58efaaca8d066dd6a 100644 (file)
@@ -1,3 +1,11 @@
+#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 /
 
@@ -35,8 +43,19 @@ RewriteRule ^api/v1/gamers$ /api/v1/gamers/register-error.json [R=400,END]
 <Files "me">
     DirectorySlash Off
 </Files>
+
+#Disable the next two lines to have static usernames only
+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