Commit Graph

79 Commits

Author SHA1 Message Date
Guangcong Luo
87b0a1760f Support new <<appeal>> and <<report>> redirects 2019-02-01 15:31:30 -05:00
Guangcong Luo
838ed99274 Update replay auto-redirect
All battle numbers below 700 million now auto-redirect to Replays.

(All expired battles will redirect to Replays, the auto-redirect just
means the client doesn't need to ask the server if a battle is expired
and wait for an answer before redirecting.)
2018-05-19 19:16:01 -04:00
Marty-D
5f3f2df06d
Update Bug Reports link 2018-05-13 23:43:08 +00:00
Guangcong Luo
24c090a08d Default to HTTPS
Chrome peer-pressuring us by locking Notification behind HTTPS... they
also lock plenty of other things behind HTTPS and the trade-off seems
worth-it now.
2017-11-21 07:50:32 -05:00
Guangcong Luo
ca1926438d Add more chat shortcut links
<<credits>>
<<news>>
<<privacy>>
<<contact>>
<<dex>>
are now available for use.
2017-02-10 18:18:43 -05:00
Guangcong Luo
0c36029265 Update Appeals redirect 2016-09-28 18:08:43 -04:00
Guangcong Luo
8c87d995a2 Fix FAQ redirect 2016-08-20 23:47:10 -04:00
Guangcong Luo
7d524d04ad Add <<faq>> shortcut link 2016-08-06 18:32:25 -04:00
Guangcong Luo
236165a8fc Stop banning search indexers
Ideally, I'd still like to direct people to the landing page of
pokemonshowdown.com, but I no longer think that blocking search
engine access to play.pokemonshowdown.com is the best approach to
achieving that.
2016-02-22 15:24:26 -05:00
Guangcong Luo
02f0c8e82c Add githooks/build-indexes
This is the search index build script from the Gen 6 Learnsets
repository, slightly rewritten for the PS client environment. It
expects a checkout of the server respository in
`data/Pokemon-Showdown`.
2015-12-21 20:09:55 -06:00
Guangcong Luo
dc7210c1c5 Remove the X-Frame-Options header
It didn't seem to be helping with the problems the user with weird
header rewriting had, so it didn't serve its intended purpose.
Removing the header saves a negligible amount of bandwidth and
more importantly suppresses an error message in Chrome which
doesn't support it.
2015-12-17 06:40:55 -05:00
Guangcong Luo
1cbd514343 Set X-Frame-Options header for crossprotocol.html
There apparently exist very bad security software that MitMs HTTPS
connections to set X-Frame-Options when I didn't want that at all
and actually crossprotocol.html is intended for embedding in an
iframe.

Hopefully this header will allow aforementioned software to take
the hint.
2015-12-15 05:49:44 -05:00
Guangcong Luo
89a736ecf8 Ignore |N| and |n| in battles
This brings battles more inline with chatrooms, in preparation for more
code-sharing server-side
2015-12-03 02:39:41 -05:00
Guangcong Luo
7f4d455b84 Support various short links 2015-11-28 04:08:45 -05:00
Guangcong Luo
76bbf1d469 Work around CloudFlare cache issue
A cache issue prevented Font Awesome from working correctly on third
party servers. CloudFlare's 'purge cache' button didn't work, so this
is kind of a last resort.
2015-09-26 01:52:12 -04:00
Guangcong Luo
ad7cc47933 Don't automatically redirect to replay
Previously, PS would automatically redirect to a replay if linked
to a nonexistent battle room. This has been replaced with a
pop-up message linking to the replay.

Very old battles are still redirected to the replay.
2015-06-11 18:40:11 -04:00
Guangcong Luo
00ce10de35 Force / not to cache
The main page should not be cached since it's small and caching
it makes it really annoying to update PS.
2015-02-19 02:44:13 -05:00
Guangcong Luo
6a691f7793 Update redirects 2014-04-20 02:57:47 -05:00
Guangcong Luo
3f05aa9c57 Add ps-proxy to autoforwarding whitelist 2014-02-08 14:22:48 -06:00
Guangcong Luo
4663cae65a Update replay redirects 2014-01-27 23:34:50 -06:00
Guangcong Luo
3161580df6 Only redirect hotlinks to main server 2013-11-09 00:18:37 -06:00
Guangcong Luo
93f6d3f811 Don't error-log 404s for apple-touch-icon-precomposed 2013-09-17 21:55:43 -05:00
Cathy J. Fitzpatrick
816ecc393c Fix directory indexes 2013-06-22 00:14:25 -05:00
Guangcong Luo
50f90acf40 Update old battle redirect 2013-06-13 00:07:23 -05:00
Cathy J. Fitzpatrick
a1b4b3a3eb Fix a redirection bug 2013-06-09 05:04:42 -05:00
Cathy J. Fitzpatrick
f40e101381 Update redirect exceptions 2013-06-09 03:09:02 -05:00
Cathy J. Fitzpatrick
0381a13772 Fix redirecting iframed third-party servers 2013-06-05 05:02:46 -05:00
Guangcong Luo
a248657620 Update what battles count as old 2013-06-03 04:16:50 -05:00
Cathy J. Fitzpatrick
e7d2579772 Correct redirect exception IP check 2013-06-03 03:39:01 -05:00
Cathy J. Fitzpatrick
bf53eed51c Another redirection exception IP 2013-06-03 03:36:44 -05:00
Cathy J. Fitzpatrick
474e3ad4a0 Re-enable HTTPS URIs 2013-06-03 01:54:36 -05:00
Cathy J. Fitzpatrick
b9337293be Temporarily disable HTTPS client URIs 2013-06-02 21:49:32 -05:00
Cathy J. Fitzpatrick
9fbe80d3e3 Better handling of HTTPS redirects 2013-05-30 18:09:09 -05:00
Guangcong Luo
7c90ac5434 Slightly more optimized regexes for redirecting 2013-05-30 15:21:46 -05:00
Guangcong Luo
bb3dfce2fa Redirect old battles to their corresponding replay 2013-05-30 15:19:30 -05:00
Guangcong Luo
570c837ebd Allow linking arbitrary rooms 2013-05-30 15:03:37 -05:00
Cathy J. Fitzpatrick
2fec658972 Preserve URI protocol when redirecting 2013-05-28 15:57:51 -05:00
小太
e6a204a800 Remove more obsolete and useless entries in .htaccess 2013-05-25 18:51:25 +11:00
Cathy J. Fitzpatrick
c5aff7b3f5 Remove some obsolete stuff from .htaccess 2013-05-25 02:40:55 -05:00
Cathy J. Fitzpatrick
6dad8b0852 Merge .htaccess with client-overhaul branch 2013-05-18 17:21:04 -05:00
Cathy J. Fitzpatrick
e315c0405d Give environment variables a value 2013-05-16 02:44:28 -05:00
Cathy J. Fitzpatrick
04c72f9a18 Add localhost to no-redirect list 2013-05-15 23:58:18 -07:00
Cathy J. Fitzpatrick
1c8e2b1fc5 Another no-redirect IP 2013-05-13 00:11:46 -07:00
Cathy J. Fitzpatrick
4fb598f5d8 Add another IP to the no-redirect lists 2013-05-06 16:45:15 -07:00
Cathy J. Fitzpatrick
d740f3e995 Merge .htaccess with client-overhaul branch 2013-05-03 16:24:32 -07:00
Cathy J. Fitzpatrick
9cc6aceaef Changes for bingbot 2013-05-01 21:37:10 -07:00
Cathy J. Fitzpatrick
af992bd86a Add SSL support (not yet usable) 2013-05-01 07:41:47 -07:00
Cathy J. Fitzpatrick
d86ef53505 The canonical URI for the site is www.pokemonshowdown.com 2013-04-29 16:34:24 -06:00
Cathy J. Fitzpatrick
8956b2cb5d More directives not to index the index page 2013-04-18 18:00:35 -06:00
Cathy J. Fitzpatrick
d664b7f5c1 Deprecate the non-xhr mode in ladder.php 2013-04-18 05:40:42 -06:00