[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [webwml/staging] Add redirect for youtube embed
commit 8bb696171d1e61fe1bc8396315fefa85b6a5051a
Author: hiromipaw <hiro@xxxxxxxxxxxxxx>
Date: Thu Dec 21 13:31:02 2017 +0100
Add redirect for youtube embed
---
.htaccess | 2 ++
en/averyonionthankyou.wml | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.htaccess b/.htaccess
index 86a523e0..21386d6f 100644
--- a/.htaccess
+++ b/.htaccess
@@ -84,6 +84,8 @@ RewriteRule ^donate/donor-faq(.*) https://donate.torproject.org/donor-faq [R=302
RewriteRule ^donate/donor-privacy-policy(.*) https://donate.torproject.org/privacy-policy [R=302,L]
RewriteRule ^donate/thankyou(.*) https://donate.torproject.org/thank-you [R=302,L]
RewriteRule ^thankyou(.*) https://donate.torproject.org/thank-you [R=302,L]
+RewriteRule ^averyonionthankyou(.*) /averyonionthankyou.html.en [R=302,L]
+RewriteRule ^embed/onionvideo(.*) https://www.youtube.com/embed/TXT0F7p7WbM [R=302,L]
# The following redirect is necessary because we're using that URL on
# some external resources (the donate infrastructure in particular) and
diff --git a/en/averyonionthankyou.wml b/en/averyonionthankyou.wml
index 777be5e8..62ddb5a3 100644
--- a/en/averyonionthankyou.wml
+++ b/en/averyonionthankyou.wml
@@ -1,7 +1,7 @@
#include "head.wmi" TITLE="Tor Project | Privacy Online" CHARSET="UTF-8" DONATION_BANNER="true"
<div id="home">
-<iframe width="560" height="315" src="https://www.youtube.com/embed/TXT0F7p7WbM" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
+<iframe width="560" height="315" src="embed/onionvideo" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
</div>
#include <foot.wmi>
\ No newline at end of file
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits