Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/ https://fsfe.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

227 lines
11 KiB

  1. # This file handles all redirects/rewrites for fsfe.org
  2. # Some of the rewrites are for shorter URLs, most for support of
  3. # changed URLs or deleted pages.
  4. #
  5. # Some redirect definitions cannot be handled by this file and therefore
  6. # are places directly in the webserver configuration:
  7. # https://git.fsfe.org/fsfe-system-hackers/webserver-bunsen/src/branch/master/files/apache2-sites/fsfe.org.conf
  8. #
  9. # Please do not create other .htaccess files in this project! It would
  10. # overwrite rewrites concerning its directories in this file and
  11. # and thereby create a lot of confusion.
  12. RewriteEngine On
  13. # Favicon
  14. RewriteRule ^favicon.ico /graphics/fsfe.ico [R=301,L]
  15. RewriteRule ^graphics/fsfeurope.ico /graphics/fsfe.ico [R=301,L]
  16. # =============================================================================
  17. # SHORT URLS
  18. # =============================================================================
  19. # Redirect
  20. RewriteRule ^translate/?$ /contribute/translators/ [R=301,L]
  21. # Promotion material order
  22. RewriteRule ^promo(/.*)? /contribute/spreadtheword$1 [R=301,L]
  23. # Convince your friends
  24. RewriteRule ^(cyf|convince)/?$ http://wiki.fsfe.org/ConvinceYourFriends [R=301,L]
  25. # Summit 2016
  26. RewriteRule ^summit16(/.*)?$ https://fsfe.org/community/events/2016/summit/frontpage$1 [R=301,L]
  27. # 15 years of FSFE
  28. RewriteRule ^15(/.*)?$ https://fsfe.org/activities/15years$1 [R=301,L]
  29. # Podcast
  30. RewriteRule ^podcast(/.*)? /news/podcast.html [R=301,L]
  31. # EU policies wiki page, e.g. linked from the PMPC brochure
  32. RewriteRule ^fs-policies/?$ https://wiki.fsfe.org/Activities/EU_Policies_overview_FS [R=301,L]
  33. # Share buttons
  34. RewriteRule ^share/?$ /cgi-bin/share.php [NC,L]
  35. # Link to PMPC event, can be changed afterwards
  36. RewriteRule ^publiccode/?$ https://registration.fsfe.org/Digitale-Verwaltung-2020 [R=301,L]
  37. # Others
  38. RewriteRule ^standards(.*) /freesoftware/standards$1 [R=301,L]
  39. RewriteRule ^education(.*) /freesoftware/education$1 [R=301,L]
  40. # =============================================================================
  41. # CAMPAIGN/TOPIC-SPECIFIC REDIRECTS
  42. # =============================================================================
  43. # Podcast
  44. RewriteRule ^news/podcast/?$ /news/podcast.html [R=301,L]
  45. RewriteRule ^news/podcast.rss$ /news/podcast.en.rss [L,R=301]
  46. RewriteRule ^news/podcast-opus.rss$ /news/podcast-opus.en.rss [L,R=301]
  47. # ILoveFS
  48. # TODO each year: update links for next two lines
  49. RewriteRule ^activities/ilovefs(/?$|/[^/]*.html$) /activities/ilovefs/2020$1 [PT,L]
  50. RewriteRule ^activities/ilovefs/latest-report.*$ /news/2019/news-20190329-01.html [R=301,L]
  51. RewriteRule ^activities/ilovefs/ilovefs(.*)html$ /activities/ilovefs/index$1html [R=301,L]
  52. # Help section
  53. RewriteRule ^help/?$ /contribute/ [R=301,L]
  54. RewriteRule ^help/index(.*) /contribute/contribute$1 [R=301,L]
  55. RewriteRule ^help/help(.*) /contribute/contribute$1 [R=301,L]
  56. RewriteRule ^help/web\.(.*) /contribute/web/web.$1 [R=301,L]
  57. RewriteRule ^help/(.*) /donate/$1 [R=301,L]
  58. # =============================================================================
  59. # MOVED PAGES
  60. # =============================================================================
  61. # News
  62. RewriteRule ^news/fsfe-fr-channel.fr.xml /news/news.fr.rss [R=301,L]
  63. RewriteRule ^2009/?$ /news/2009/nyr.html [R=301,L]
  64. RewriteRule ^news/2016/news-20160629-01(.*)$ /news/2016/news-20160630-01$1 [R=301,L]
  65. RewriteRule ^about/reports/es-2003(.*)$ /news/2003/news-20030602-01$1 [R=301,L]
  66. RewriteRule ^about/reports/es-2005(.*)$ /news/2005/news-20050507-01$1 [R=301,L]
  67. RewriteRule ^about/reports/es-2007(.*)$ /news/2007/news-20070630-01$1 [R=301,L]
  68. RewriteRule ^about/reports/es-2009(.*)$ /news/2009/news-20090620-01$1 [R=301,L]
  69. RewriteRule ^freesoftware/enterprise/freesoftwarecompany(.*)$ /news/2018/news-20181202-01$1 [R=301,L]
  70. RewriteRule ^freesoftware/enterprise/chargeofitsbrand(.*)$ /news/2009/news-20090604-01$1 [R=301,L]
  71. # Old/moved people/staff profiles
  72. RewriteRule ^about/(bako|polvani|tuke|maffulli|jakobs|oriordan|oberg|coughlan|weiden|nanda)(/.*)?$ /about/team [R=301,L]
  73. RewriteRule ^about/(albers|gerloff|greve|kirschner|ku|lasota|mehl|repentinus|roy|sander)(/.*)?$ /about/people/$1$2 [R=301,L]
  74. RewriteRule ^people/greve(/.*)?$ /about/people/greve [R=301,L]
  75. RewriteRule ^about/people/?(people.*)?$ /about/team.html [R=301,L]
  76. # /en/.*
  77. RewriteRule ^en/layout/set/rss/content/view/full/5116 http://blogs.fsfe.org/ciaran/?feed=rss2 [R=301,L]
  78. RewriteRule ^en/layout/set/rss/content/view/full/5009 http://blogs.fsfe.org/maffulli/?feed=rss2 [R=301,L]
  79. RewriteRule ^en/layout/set/rss/content/view/full/4972 http://blogs.fsfe.org/gerloff/?feed=rss2 [R=301,L]
  80. RewriteRule ^en/layout/set/rss/content/view/full/5971 http://blogs.fsfe.org/jj/?feed=rss2 [R=301,L]
  81. RewriteRule ^en/layout/set/rss/content/view/full/6128 http://blogs.fsfe.org/jj/?feed=rss2 [R=301,L]
  82. RewriteRule ^en/layout/set/rss/content/view/full/4974 http://blogs.fsfe.org/greve/?feed=rss2 [R=301,L]
  83. RewriteRule ^en/news http://fsfe.org/news/ [R=301,L]
  84. RewriteRule ^en/rss/feed/news.xml /news/news.en.rss [R=301,L]
  85. RewriteRule ^en/rss/feed/events.xml /events/events.en.rss [R=301,L]
  86. RewriteRule ^en/content/download/17665/125518/file/gnupg-ccid.rules http://wiki.fsfe.org/Card_howtos/Card_reader_setup_(udev)?action=AttachFile&do=view&target=gnupg-ccid.rules [R=301,L]
  87. RewriteRule ^en/content/download/15872/77909/file/gnupg-ccid http://wiki.fsfe.org/Card_howtos/Card_reader_setup_(udev)?action=AttachFile&do=view&target=gnupg-ccid [R=301,L]
  88. # Tags
  89. RewriteRule ^tags/tagged(\...)(\.html)?$ /tags/tags$1.html [R=301,L]
  90. # Documents
  91. RewriteRule ^documents/freesoftware(.*) /freesoftware/freesoftware.html [R=301,L]
  92. RewriteRule ^documents(/.*)?$ / [R=301,L]
  93. # Old campaigns and projects pages
  94. RewriteRule ^projects(/.*)?$ /activities/activities.html [R=301,L]
  95. RewriteRule ^campaigns(/.*)?$ /activities$1 [R=301,L]
  96. # /freesoftware, /about/basics and similar "basic" texts
  97. RewriteRule ^about/basics/?(.*)$ /freesoftware/ [R=301,L]
  98. RewriteRule ^freesoftware/basics/(comparison|gnuproject)(.*)$ /freesoftware/$1$2 [R=301,L]
  99. RewriteRule ^freesoftware/basics/legal/?(.*)$ /freesoftware/legal/ [R=301,L]
  100. RewriteRule ^freesoftware/society/?(.*)$ /freesoftware/democracy.html [R=301,L]
  101. RewriteRule ^freesoftware/legal/flashingdevices(.*)$ /activities/android/flashingdevices$1 [R=301,L]
  102. RewriteRule ^freesoftware/public-sector/german-foreign-office-comment(.*)$ https://k7r.eu/buchartikel-freie-software-im-auswartigen-amt-erst-hu-dann-hott/ [R=301,L]
  103. RewriteRule ^freesoftware/(basics|enterprise|support|third-sector|transcripts)/?(.*)$ /freesoftware/ [R=301,L]
  104. # /activities/ftf/
  105. RewriteRule ^activities/ftf/avm-gpl-violation(.*)$ /activities/avm-gpl-violation/ [R=301,L]
  106. RewriteRule ^activities/ftf/legal-conference(.*)$ /activities/ln/llw.html [R=301,L]
  107. RewriteRule ^activities/ftf/licence-questions(.*)$ /activities/licence-questions/ [R=301,L]
  108. RewriteRule ^activities/ftf/ln(.*)$ /activities/ln/ [R=301,L]
  109. RewriteRule ^activities/ftf/ngi0(.*)$ /activities/ngi/ [R=301,L]
  110. RewriteRule ^activities/ftf/?(.*)$ /activities/legal.html [R=301,L]
  111. # /activities
  112. RewriteRule ^activities/askyourcandidates(.*) /activities/elections/askyourcandidates$1 [R=301,L]
  113. RewriteRule ^activities/btw09(.*) /activities/elections/askyourcandidates/200909-germany-bundestagswahl.html [R=301,L]
  114. RewriteRule ^activities/education/tgs(.*) /activities/tgs$1 [R=301,L]
  115. RewriteRule ^activities/education(.*) /freesoftware/education$1 [R=301,L]
  116. RewriteRule ^activities/os/msooxml(.*) /acticities/msooxml/msooxml$1 [R=301,L]
  117. RewriteRule ^activities/os(.*) /freesoftware/standards$1 [R=301,L]
  118. RewriteRule ^activities/procurement(.*) /freesoftware/procurement$1 [R=301,L]
  119. # deleted activities
  120. RewriteRule ^(activities/)?nocloud(/.*)? /activities/activities.html [R=301,L]
  121. RewriteRule ^activities/policy/.* /activities/policy.html [R=301,L]
  122. RewriteRule ^activities/theydontwantyouto(/.*)? /activities/activities.html [R=301,L]
  123. RewriteRule ^activities/un(/.*)? /activities/policy.html [R=301,L]
  124. # Norwegian language: Bokmal language code
  125. RewriteRule ^(.*)\.no.html /$1.nb.html [R=301,L]
  126. RewriteRule ^(.*)\.no.rss /$1.nb.rss [R=301,L]
  127. # Other pages
  128. RewriteRule ^about/(history|reports)/?(.*)$ /about/ [R=301,L]
  129. RewriteRule ^about/members(/.*)?$ /about/team$1 [R=301,L]
  130. RewriteRule ^about/community(/.*)?$ /contact/community.html [R=301,L]
  131. RewriteRule ^about/self-conception(/.*)?$ /about/principles$1 [R=301,L]
  132. RewriteRule ^contact/press(.*) /press/press$1 [R=301,L]
  133. RewriteRule ^associates/about(.*) /associates/associates$1 [R=301,L]
  134. RewriteRule ^contribute/traineeship(.*) /contribute/internship$1 [R=301,L]
  135. RewriteRule ^contribute/donate(.*) /donate$1 [R=301,L]
  136. RewriteRule ^contact/local(.*) /contact/contact$1 [R=301,L]
  137. RewriteRule ^about/localteams(.*) /contact/contact$1 [R=301,L]
  138. RewriteRule ^fr/(news|events)\.(..\.)?html /fr/fr.$2html [R=301,L]
  139. RewriteRule ^activities/wsis/cs-benchmarks\.(.*)$ /activities/wsis/cs-benchmarks-03-11-14.$1 [R=301,L]
  140. RewriteRule ^contribute/booth(.*) https://wiki.fsfe.org/KnowHow/Groups/OrganizeABooth [R=301,L]
  141. RewriteRule ^work(\...)?(\.html)?$ /about/ourwork$1.html [R=301,L]
  142. # =============================================================================
  143. # FELLOWSHIP AND DONATIONS
  144. # =============================================================================
  145. # Payment
  146. RewriteRule ^fellowship/paypal(/.*)?$ https://my.fsfe.org/payonline$1 [R=301,L]
  147. RewriteRule ^fellowship/payonline(/.*)?$ https://my.fsfe.org/payonline$1 [R=301,L]
  148. RewriteRule ^fellowship/payonline/([^/]*)/(.*) https://my.fsfe.org/payonline/$2 [R=301,L]
  149. RewriteRule ^fellowship/login(/.*)?$ https://my.fsfe.org/ [R=301,L]
  150. RewriteRule ^fellowship/join(/.*)?$ https://my.fsfe.org/support [R=301,L]
  151. RewriteRule ^fellowship/donate(/.*)?$ https://my.fsfe.org/donate [R=301,L]
  152. RewriteRule ^fellowship/payment(/.*)?$ https://fsfe.org/donate/payment$1 [R=301,L]
  153. RewriteRule ^donate/payonline(/.*)?$ https://my.fsfe.org/payonline$1 [R=301,L]
  154. RewriteRule ^order/payonline.(.*)/(.*) /cgi-bin/order-payonline.pl?language=$1&reference=$2
  155. # Old /fellowship pages
  156. RewriteRule ^fellowship/card(/.*)?$ https://wiki.fsfe.org/TechDocs/CardHowtos [R=301,L]
  157. RewriteRule ^fellowship/communicate(/.*)?$ /contact/community.html [R=301,L]
  158. RewriteRule ^fellowship/contact(/.*)?$ /contact/contact.html [R=301,L]
  159. RewriteRule ^fellowship/events(.*) https://fsfe.org/events$1 [R=301,L]
  160. RewriteRule ^fellowship/faq(/.*)?$ https://wiki.fsfe.org/KnowHow/FSFELife/FAQ [R=301,L]
  161. RewriteRule ^fellowship/graphics/people(/.*)?$ - [L]
  162. RewriteRule ^fellowship/groups(/.*)?$ https://wiki.fsfe.org/LocalGroups [R=301,L]
  163. RewriteRule ^fellowship/new-group(/.*)?$ https://wiki.fsfe.org/KnowHow/Groups/CoordinatorsHandbook [R=301,L]
  164. # Catch the rest
  165. RewriteRule ^fellowship / [R=301,L]
  166. # Donate
  167. RewriteRule ^donate(/?|/donate/?|/donate\..*|/donate-.*|/index.*)$ https://my.fsfe.org/donate [R=301,L]
  168. RewriteRule ^donate(/onetime-donation.*|/spenden.*|/paypal.*)$ https://my.fsfe.org/donate [R=301,L]
  169. # Join/Support
  170. RewriteRule ^support(er)?(/.*)?$ https://my.fsfe.org/donate [R=301,L]
  171. RewriteRule ^join(/.*)?$ https://my.fsfe.org/donate [R=301,L]
  172. RewriteRule ^login(/.*)?$ https://my.fsfe.org/ [R=301,L]
  173. # =============================================================================
  174. # MERCHANDISE / PROMO
  175. # =============================================================================
  176. # Old pages
  177. RewriteRule ^about/printable(/.*)?$ /contribute/spreadtheword.html [R=301,L]
  178. # =============================================================================
  179. # MISCELLANEOUS
  180. # =============================================================================
  181. # Forbid access to these folders
  182. RewriteRule ^(tools|build)(/.*)?$ - [F,L]