Skip to content

Commit

Permalink
Serve JSON5 files as plaintext
Browse files Browse the repository at this point in the history
I used this to share some JSON5 files at some point. It's not currently
used, but it's probably a useful feature to have around if we ever do
need it in the future.
  • Loading branch information
Zarel committed Sep 7, 2020
1 parent 6d7201e commit 0fbafa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ RewriteCond %{HTTP:CF-Connecting-IP} !=198.27.67.31
RewriteCond %{HTTP:CF-Connecting-IP} !=162.243.13.96
RewriteRule ^.* https://pokemonshowdown.com/ [R=303,L]

AddType 'text/plain; charset=UTF-8' json5

RewriteRule ^replay/battle-([A-Za-z0-9-]+)$ https://replay.pokemonshowdown.com/$1 [R=302,L]
RewriteRule ^replay/turn_(.+)\.png$ replay/turn-image.php?data=$1 [L,QSA]

Expand Down

0 comments on commit 0fbafa0

Please sign in to comment.