webwml/.htaccess

86 lines
3.2 KiB
ApacheConf
Raw Normal View History

RewriteEngine On
# moved to /docs/
RewriteRule ^faq(.*) /docs/faq$1 [R=301,L]
RewriteRule ^bridges(.*) /docs/bridges$1 [R=301,L]
RewriteRule ^abuse(.*) /docs/abuse$1 [R=301,L]
2010-10-23 22:03:33 +00:00
RewriteRule ^documentation(.*) /docs/documentation$1 [R=301,L]
RewriteRule ^verifying-signatures(.*) /docs/verifying-signatures$1 [R=301,L]
RewriteRule ^tor-manual(.*) /docs/tor-manual$1 [R=301,L]
# Torbutton
RewriteRule ^torbutton/design(.*) /docs/torbutton/en/design$1 [R=301,L]
2014-07-22 18:08:17 +00:00
RewriteRule ^torbutton/(.*) /docs/torbutton/$1 [R=301,L]
2010-10-16 18:14:47 +00:00
# Tor Browser
2010-10-16 22:02:11 +00:00
RewriteRule ^torbrowser/dist/(.*) /dist/torbrowser/$1 [R=301,L]
#RewriteRule ^torbrowser/$ /projects/torbrowser.html.en [R=301,L]
RewriteRule ^torbrowser(.*) /projects/torbrowser.html.en [R=301,L]
2010-10-16 18:14:47 +00:00
2014-10-17 08:51:27 +00:00
# tordnsel
RewriteRule ^tordnsel/dist/(.*) /dist/tordnsel/$1 [R=301,L]
2010-10-16 18:14:47 +00:00
# Overview
2010-10-16 22:02:11 +00:00
RewriteRule ^overview(.*) /about/overview$1 [R=301,L]
2010-10-16 18:18:46 +00:00
# Press
2010-10-28 05:26:01 +00:00
RewriteRule ^press/$ /press/press [R=301,L]
2010-10-16 22:02:11 +00:00
RewriteRule ^press/index.html(.*) /press/press.html$1 [R=301,L]
# Projects
2010-10-28 05:26:01 +00:00
RewriteRule ^projects/$ /projects/projects [R=301,L]
#Pluggable Transports
RewriteRule ^PT/?$ /docs/pluggable-transports [R=301,L]
2016-07-14 21:32:23 +02:00
RewriteRule ^projects/obfsproxy-debian-instructions(.*) /docs/pluggable-transports [R=410,L]
RewriteRule ^projects/obfsproxy-instructions(.*) /docs/pluggable-transports [R=410,L]
RewriteRule ^projects/obfsproxy(.*) /docs/pluggable-transports [R=301,L]
# GetInvolved
2010-10-28 05:26:01 +00:00
RewriteRule ^getinvolved/$ /getinvolved/volunteer [R=301,L]
RewriteRule ^volunteer(.*) /getinvolved/volunteer$1 [R=301,L]
RewriteRule ^tshirt(.*) /getinvolved/tshirt$1 [R=301,L]
RewriteRule ^research(.*) https://research.torproject.org/ [R=301,L]
RewriteRule ^getinvolved/research(.*) https://research.torproject.org/ [R=301,L]
# other (feel free to categorize)
RewriteRule ^people(.*) /about/corepeople$1 [R=301,L]
2016-11-23 02:12:41 +01:00
RewriteRule ^donate/$ https://donate.torproject.org [R=302,L]
2011-12-15 15:43:05 +00:00
RewriteRule ^contact(.*) /about/contact$1 [R=301,L]
# Download websites
RewriteRule ^download/$ /download/download [R=301,L]
RewriteRule ^download.html(.*) /download/download.html$1 [R=301,L]
2011-09-04 13:41:39 +00:00
RewriteRule ^easy-download(.*) /download/download-easy$1 [R=301,L]
2012-03-11 22:40:03 +00:00
# Relays
RewriteRule ^relays(.*) /getinvolved/relays [R=301,L]
2015-11-20 17:13:31 +01:00
# Index Pages
RewriteRule ^about/$ /about/overview [R=301,L]
RewriteRule ^cgi-bin/$ / [R=301,L]
RewriteRule ^css/$ / [R=301,L]
RewriteRule ^docs/$ /docs/documentation [R=301,L]
RewriteRule ^eff/$ / [R=301,L]
RewriteRule ^en/$ / [R=301,L]
RewriteRule ^images/$ / [R=301,L]
RewriteRule ^include/$ / [R=301,L]
RewriteRule ^js/$ / [R=301,L]
2015-11-20 17:13:31 +01:00
# Donation campagin
2016-11-18 14:53:28 +01:00
# 2016
2016-11-23 03:15:36 +01:00
# Special-case the donate-options and amazon page so it doesn't get redirected
RewriteRule ^donate/donate-options(.*) /donate/donate-options$1 [END]
2016-11-23 03:15:36 +01:00
RewriteRule ^donate/donate-amazon(.*) /donate/donate-amazon$1 [END]
2016-11-23 01:12:52 +01:00
RewriteRule ^donate/donate(.*) https://donate.torproject.org [R=302,L]
RewriteRule ^donate/donor-faq(.*) https://donate.torproject.org/donor-faq.html [R=302,L]
2016-11-23 02:12:41 +01:00
RewriteRule ^donate/donor-privacy-policy(.*) https://donate.torproject.org/privacy-policy.html [R=302,L]
2016-12-05 21:39:12 +01:00
# The following redirect is necessary because we're using that URL on
# some external resources (the donate infrastructure in particular) and
# getting it changed there is apparently hard or something.
2016-12-03 00:59:34 +01:00
RewriteRule ^donate-email(.*) https://donate.torproject.org/ [R=302,L]
2016-11-23 01:12:52 +01:00