X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/f426e1fda0d54aef2ea4b1efcaf4f579dc319e02..6d625b9f8e515c97df80720ee0b8b82e5ee4aa7e:/www/.htaccess diff --git a/www/.htaccess b/www/.htaccess index 2c5ece0..8a9dc04 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -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] DirectorySlash Off + +#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