Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0 Removal and other fixes #45

Merged
merged 2 commits into from
Dec 9, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

26 changes: 25 additions & 1 deletion api/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
Header unset Pragma
FileETag None
Header unset ETag

ExpiresActive On
ExpiresDefault A0

<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*?)$ https://www.xboxleaders.com/api/1.0/$1 [L,QSA,NE]

RedirectMatch 301 ^/api/(1\.0|2\.0)/.* https://www.xboxleaders.com/api/

RewriteRule ^achievements\.(json|xml)$ achievements.php?format=$1 [L,QSA]
RewriteRule ^games\.(json|xml)$ games.php?format=$1 [L,QSA]
RewriteRule ^profile\.(json|xml)$ profile.php?format=$1 [L,QSA]
RewriteRule ^friends\.(json|xml)$ friends.php?format=$1 [L,QSA]
RewriteRule ^search\.(json|xml)$ search.php?format=$1 [L,QSA]

RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|OPTIONS|POST|PUT)
RewriteRule .* - [F]
23 changes: 0 additions & 23 deletions api/1.0/.htaccess

This file was deleted.

41 changes: 0 additions & 41 deletions api/1.0/achievements.php

This file was deleted.

38 changes: 0 additions & 38 deletions api/1.0/friends.php

This file was deleted.

38 changes: 0 additions & 38 deletions api/1.0/games.php

This file was deleted.

Loading