commit c49bb2ee8a83dc71844f4790fe0d69408301672b Author: hiromipaw hiro@torproject.org Date: Sat Jul 1 10:02:23 2017 +0200
Add personalised 404 page --- .htaccess | 4 ++-- en/404.wml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.htaccess b/.htaccess index 638c2ee..8b3fd56 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,7 @@ RewriteEngine On
+ErrorDocument 404 /404 + # moved to /docs/ RewriteRule ^faq(.*) /docs/faq$1 [R=301,L] RewriteRule ^bridges(.*) /docs/bridges$1 [R=301,L] @@ -81,5 +83,3 @@ RewriteRule ^donate/donor-privacy-policy(.*) https://donate.torproject.org/priva # some external resources (the donate infrastructure in particular) and # getting it changed there is apparently hard or something. RewriteRule ^donate-email(.*) https://donate.torproject.org/ [R=302,L] - - diff --git a/en/404.wml b/en/404.wml new file mode 100644 index 0000000..d96e217 --- /dev/null +++ b/en/404.wml @@ -0,0 +1 @@ +<p>This is an error page. Not sure how you got here.</p>
tor-commits@lists.torproject.org