Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
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.

.htaccess 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. RewriteEngine On
  2. # Favicon
  3. RewriteRule ^favicon.ico /graphics/fsfe.ico [redirect=permanent]
  4. RewriteRule ^graphics/fsfeurope.ico /graphics/fsfe.ico [redirect=permanent]
  5. ## === SHORT URLs ===
  6. # Translators redirect
  7. RewriteRule ^translate /contribute/translators/ [redirect=permanent]
  8. # Old supporter database
  9. RewriteRule ^support(/.*)? /join [redirect=permanent]
  10. # AskYourCandidates redirect
  11. RewriteRule ^campaigns/ayc(.*) /campaigns/askyourcandidates$1 [redirect=permanent]
  12. # NoCloud campaign, as printed on posters
  13. RewriteRUle ^nocloud(/.*)? /activities/nocloud$1 [redirect=permanent]
  14. # Short cut for promo order
  15. RewriteRUle ^promo(/.*)? /contribute/spreadtheword$1 [redirect=permanent]
  16. # Redirect convince your friends easy pages to the wiki page
  17. RewriteRule ^(cyf|convince).* http://wiki.fsfe.org/ConvinceYourFriends [R=permanent]
  18. # Summit 2016
  19. RewriteRule ^summit16(/.*)?$ https://fsfe.org/community/events/2016/summit/frontpage$1 [redirect=permanent]
  20. #RewriteRule ^summit16(/.*)?$ https://wiki.fsfe.org/Events/Summit2016/CallForParticipation$1 [redirect=permanent]
  21. # 15 years of FSFE
  22. RewriteRule ^15(/.*)?$ https://fsfe.org/campaigns/15years/15years$1 [redirect=permanent]
  23. # EU policies wiki page, e.g. linked from the PMPC brochure
  24. RewriteRule ^fs-policies/?$ https://wiki.fsfe.org/Activities/EU_Policies_overview_FS [redirect=permanent]
  25. ## === MOVED PAGES ===
  26. # Redirections for IloveFS campaign
  27. RewriteRule ^campaigns/ilovefs/latest-report(.*)$ /news/2018/news-20180308-01.html [redirect=permanent] # UPDATE always link to latest available report
  28. RewriteRule ^campaigns/ilovefs/ilovefs(.*)html$ /campaigns/ilovefs/index$1html [redirect=permanent]
  29. RewriteRule ^campaigns/ilovefs((/?)|(/[^/]*).html)$ /campaigns/ilovefs/2019$1 [PT] # UPDATE year
  30. RewriteRule ^campaigns/ilovefs/(201[2-5])/index(.*)$ /campaigns/ilovefs/$1/ [redirect=permanent]
  31. RewriteRule ^campaigns/ilovefs/(201[2-5])(/?)$ /campaigns/ilovefs/$1/ilovefs.html
  32. RewriteRule ^(.*)\.no.html /$1.nb.html [redirect=permanent]
  33. RewriteRule ^(.*)\.no.rss /$1.nb.rss [redirect=permanent]
  34. RewriteRule ^contact/press(.*) /press/press$1 [redirect=permanent]
  35. RewriteRule ^standards(.*) /projects/os$1 [redirect=permanent]
  36. RewriteRule ^education(.*) /projects/education$1 [redirect=permanent]
  37. RewriteRule ^ftf(.*) /activities/ftf$1 [redirect=permanent]
  38. RewriteRule ^stacs(.*) /projects/stacs$1 [redirect=permanent]
  39. RewriteRule ^gbn(.*) /projects/gbn$1 [redirect=permanent]
  40. RewriteRule ^law/eucd/(.*) /projects/eucd$1 [redirect=permanent]
  41. RewriteRule ^law(.*) /projects/law$1 [redirect=permanent]
  42. RewriteRule ^swpat(.*) /projects/swpat$1 [redirect=permanent]
  43. RewriteRule ^donate.html /donate/donate.en.html [redirect=permanent]
  44. RewriteRule ^associates/about(.*) /associates/associates$1 [redirect=permanent]
  45. RewriteRule ^contribute/traineeship(.*) /contribute/internship$1 [redirect=permanent]
  46. RewriteRule ^contribute/donate(.*) /donate$1 [redirect=permanent]
  47. RewriteRule ^contact/local(.*) /about/localteams$1 [redirect=permanent]
  48. # New year's resolution in 2009.
  49. RewriteRule ^2009$ /news/2009/nyr.html [redirect=permanent]
  50. RewriteRule ^2009/$ /news/2009/nyr.html [redirect=permanent]
  51. # Help section redirs.
  52. RewriteRule ^help/?$ /contribute/ [redirect=permanent]
  53. RewriteRule ^help/index(.*) /contribute/contribute$1 [redirect=permanent]
  54. RewriteRule ^help/help(.*) /contribute/contribute$1 [redirect=permanent]
  55. RewriteRule ^help/web\.(.*) /contribute/web/web.$1 [redirect=permanent]
  56. RewriteRule ^help/(.*) /donate/$1 [redirect=permanent]
  57. # Valentine campaign redirects.
  58. # 2010
  59. RewriteRule ^valentine-2010/(.*) /campaigns/valentine/2010/$1 [redirect=permanent]
  60. RewriteRule ^vd2010/(.*) /campaigns/valentine/2010/$1 [redirect=permanent]
  61. RewriteRule ^campaigns/vd2010/vd2010(.*) /campaigns/valentine/2010/valentine-2010$1 [redirect=permanent]
  62. RewriteRule ^campaigns/valentine-2010/vd2010(.*) /campaigns/valentine/2010/valentine-2010$1 [redirect=permanent]
  63. RewriteRule ^campaigns/valentine-2010/(.*).png /campaigns/valentine/$1.png [redirect=permanent]
  64. RewriteRule ^campaigns/valentine-2010/(.*).svg /campaigns/valentine/$1.svg [redirect=permanent]
  65. RewriteRule ^campaigns/vd2010/(.*) /campaigns/valentine/2010/$1 [redirect=permanent]
  66. RewriteRule ^campaigns/vd2010 /campaigns/valentine/2010/valentine-2010 [redirect=permanent]
  67. # current
  68. RewriteRule ^valentine/valentine(.*) /campaigns/valentine/2011/valentine-2011$1 [redirect=permanent]
  69. # trying fix the dirty hack redirection loop from 2011-06-30
  70. RewriteRule ^campaigns/valentine(/?)$ /campaigns/valentine/2011/valentine-2011 [redirect=temp]
  71. RewriteRule ^campaigns/valentine/2011(/?)$ /campaigns/valentine/2011/valentine-2011 [redirect=temp]
  72. # Temporary fix unitl we have a /freesoftware dir for contribute/advocacy/cwfs.en.html
  73. # RewriteRule ^freesoftware/freesoftware(.*) /about/basics/freesoftware$1 [redirect=temp]
  74. # Rewrite for dead links to gnupg-ccid stuff
  75. 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 [redirect=permanent]
  76. 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 [redirect=permanent]
  77. # Redirects to reduce 404's
  78. RewriteRule ^en/layout/set/rss/content/view/full/5116 http://blogs.fsfe.org/ciaran/?feed=rss2 [redirect=permanent]
  79. RewriteRule ^en/layout/set/rss/content/view/full/5009 http://blogs.fsfe.org/maffulli/?feed=rss2 [redirect=permanent]
  80. RewriteRule ^en/layout/set/rss/content/view/full/4972 http://blogs.fsfe.org/gerloff/?feed=rss2 [redirect=permanent]
  81. RewriteRule ^en/layout/set/rss/content/view/full/5971 http://blogs.fsfe.org/jj/?feed=rss2 [redirect=permanent]
  82. RewriteRule ^en/layout/set/rss/content/view/full/6128 http://blogs.fsfe.org/jj/?feed=rss2 [redirect=permanent]
  83. RewriteRule ^en/layout/set/rss/content/view/full/4974 http://blogs.fsfe.org/greve/?feed=rss2 [redirect=permanent]
  84. RewriteRule ^en/news http://fsfe.org/news/ [redirect=permanent]
  85. RewriteRule ^people/greve /about/greve/ [redirect=permanent]
  86. RewriteRule ^projects/fellowship /fellowship/ [redirect=permanent]
  87. RewriteRule ^fellowship/contact /contact/contact.html [redirect=permanent]
  88. RewriteRule ^en/rss/feed/news.xml /news/news.en.rss [redirect=permanent]
  89. RewriteRule ^en/rss/feed/events.xml /events/events.en.rss [redirect=permanent]
  90. RewriteRule ^news/fsfe-fr-channel.fr.xml /news/news.fr.rss [redirect=permanent]
  91. RewriteRule ^about/members(.*) /about/team$1 [redirect=permanent]
  92. # Moved news pages
  93. RewriteRule ^news/2016/news-20160629-01(.*) /news/2016/news-20160630-01$1 [redirect=permanent]
  94. # Legal pages redirects
  95. RewriteRule ^ftf(.*) /activities/ftf$1 [redirect=permanent]
  96. RewriteRule ^legal(.*) /activities/ftf$1 [redirect=permanent]
  97. RewriteRule ^activities/ftf/rough-guide-for-users(.*) /projects/ftf/useful-tips-for-users$1 [redirect=permanent]
  98. RewriteRule ^activities/ftf/rough-guide-for-vendors(.*) /projects/ftf/useful-tips-for-vendors$1 [redirect=permanent]
  99. RewriteRule ^activities/ftf/contact(.*) /contact/contact$1#ftf [NE,redirect=permanent]
  100. RewriteRule ^activities/ftf/form(.*) /contact/contact$1#ftf [NE,redirect=permanent]
  101. RewriteRule ^activities/ftf/ftf\.(.*)html /activities/ftf/activities.$1html [redirect=permanent]
  102. RewriteRule ^activities/ftf/$ /activities/ftf/activities.html [redirect=permanent]
  103. RewriteRule ^activities/ftf/index\.(.*)html /activities/ftf/activities.$1html [redirect=permanent]
  104. RewriteRule ^activities/ftf/network\.(.*)html /activities/ftf/ln.$1html [redirect=permanent]
  105. RewriteRule ^activities/ftf/recommended\.(.*)html /activities/ftf/licence-questions.$1html [redirect=permanent]
  106. RewriteRule ^activities/ftf/legal-network-policy\.(.*)html /activities/ftf/ln-rules.$1html [redirect=permanent]
  107. RewriteRule ^activities/ftf/education /activities/ftf/services.html [redirect=permanent]
  108. # Old staff profiles
  109. RewriteRule ^about/bako(.*) /about/team [redirect=permanent]
  110. RewriteRule ^about/polvani(.*) /about/team [redirect=permanent]
  111. RewriteRule ^about/tuke(.*) /about/team [redirect=permanent]
  112. # This recipie makes sure that permanent redirects are not cached
  113. # indefinitely, but re-validated every 10 minutes.
  114. # NOTE: Enable this when we get an Apache 2.4 :-/
  115. #Header append Cache-Control s-maxage=600 "expr=%{REQUEST_STATUS} == 301"
  116. #Header append Cache-Control max-age=600 "expr=%{REQUEST_STATUS} == 301"
  117. # Nicer URL for share buttons
  118. RewriteRule ^share/?$ /cgi-bin/share.php [NC,L]
  119. # Removal of duplicate information, and deprecating /fellowship/
  120. RewriteRule ^about/community /contact/community.html [redirect=permanent]
  121. RewriteRule ^fellowship/communicate /contact/community.html [redirect=permanent]
  122. RewriteRule ^fellowship/faq https://wiki.fsfe.org/KnowHow/FSFELife/FAQ [redirect=permanent]
  123. RewriteRule ^fellowship/card https://wiki.fsfe.org/TechDocs/CardHowtos [redirect=permanent]
  124. RewriteRule ^fellowship/new-group https://wiki.fsfe.org/KnowHow/Groups/CoordinatorsHandbook [redirect=permanent]
  125. RewriteRule ^fellowship/events(.*) https://fsfe.org/events$1 [redirect=permanent]
  126. RewriteRule ^fellowship/payment(.*) https://fsfe.org/donate/payment$1 [redirect=permanent]
  127. RewriteRule ^fellowship/groups https://wiki.fsfe.org/LocalGroups [redirect=permanent]
  128. RewriteRule ^fellowship/groups/berlin https://wiki.fsfe.org/LocalGroups/Berlin [redirect=permanent]
  129. RewriteRule ^fellowship/groups/coordinators https://wiki.fsfe.org/Teams/Coordinators [redirect=permanent]
  130. RewriteRule ^login https://my.fsfe.org/ [redirect=permanent]
  131. RewriteRule ^fellowship/graphics/people - [L]
  132. RewriteRule ^fellowship / [redirect=permanent]