X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/ffaf9ce001a295774660828e2d3bf5c026a754aa..e69136c0ac20223e70e39dc034b2ffdab7b1679f:/www/.htaccess diff --git a/www/.htaccess b/www/.htaccess index a05e953..cf607a1 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -19,6 +19,14 @@ RewriteRule ^api/v1/developers/(.+)/products/ /api/v1/developers/$1/products/%1. RewriteRule ^api/v1/discover/?$ /api/v1/discover-data/discover.json [END] RewriteRule ^api/v1/discover/(.+)$ /api/v1/discover-data/$1.json [END] +#if directoryslash is on, gamers gets redirected to gamers/ (dir index) + + DirectorySlash off + +#TODO: Use that only for the api/v1/gamers path, not for all +ErrorDocument 400 /api/v1/gamers/register-error.json +RewriteRule ^api/v1/gamers$ /api/v1/gamers/register-error.json [R=400,END] + #purchased games/products # active buy requests RewriteCond %{REQUEST_METHOD} POST