-
Notifications
You must be signed in to change notification settings - Fork 30
/
.htaccess
70 lines (63 loc) · 3.83 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
AddType application/x-httpd-php .phtml
# Over time, files got moved around in the webdirectory
# To provide users a consistent experience a number
# of redirects are set up from obsolete locations
# to the best-matching new locations. This will
# reduce the number of "page not found" errors
# users will get due to external sites linking
# to obsolete locations.
# The old website was kept here for historical purposes.
# Any attempt to access it will be redirected to the
# new site's main page.
RedirectMatch permanent /old-website/.* https://www.gnucash.org
# Images were once stored in /externals, while they are now in /images
# Redirect some that get a lot of "not found hits"
Redirect permanent /externals/banner5.png /images/banner5.png
Redirect permanent /externals/webding.png /images/webding.png
# Other images we don't have an alternative for
Redirect permanent /externals/feed-icon-12x12.png https://upload.wikimedia.org/wikipedia/commons/5/54/Social_icons-rss-feed-22x22.png
Redirect permanent /images/icons/feed-icon-12x12.png https://upload.wikimedia.org/wikipedia/commons/5/54/Social_icons-rss-feed-22x22.png
# The french version of the website apparently used to have
# lots of private pages. Not all of them have an equivalent
# on the current site anymore. We'll just redirect them
# as well as we can to sensible alternatives.
Redirect permanent /fr/bios /index.phtml?lang=fr_FR
Redirect permanent /fr/components /index.phtml?lang=fr_FR
Redirect permanent /fr/contribute https://wiki.gnucash.org/wiki/Development
Redirect permanent /fr/data /index.phtml?lang=fr_FR
Redirect permanent /fr/Docs /docs.phtml?lang=fr_FR
Redirect permanent /fr/features_5.phtml /features.phtml?lang=fr_FR
Redirect permanent /fr/irc.phtml https://wiki.gnucash.org/wiki/IRC
Redirect permanent /fr/links /index.phtml?lang=fr_FR
Redirect permanent /fr/menu /index.phtml?lang=fr_FR
Redirect permanent /docs/fr/ /docs.phtml?lang=fr_FR
# Some pages that don't exist anymore in the current website
RedirectMatch permanent /.*/favicon.ico /favicon.ico
RedirectMatch permanent /.*/lists.phtml https://wiki.gnucash.org/wiki/Mailing_Lists
RedirectMatch permanent /(.*)/promote.phtml /index.phtml?lang=$1
RedirectMatch permanent /(.*)/required.phtml /index.phtml?lang=$1
RedirectMatch permanent /(.*)/sizing.phtml /index.phtml?lang=$1
RedirectMatch permanent /(.*)/state_of_the_gnucash_project.phtml /index.phtml?lang=$1
RedirectMatch permanent /.*/roadmap.phtml https://wiki.gnucash.org/wiki/Roadmap
RedirectMatch permanent /(.*)/rss-feed.phtml /atom.php?lang=$1
RedirectMatch permanent /.*/sql.phtml https://wiki.gnucash.org/wiki/SQL
RedirectMatch permanent /(.*)/t-shirt /index.phtml?lang=$1
RedirectMatch permanent /pipermail/(.*) https://lists.gnucash.org/pipermail/$1
RedirectMatch permanent /screenshots.phtml(.*) /features.phtml$1
RedirectMatch permanent /.*/develdocs.phtml https://wiki.gnucash.org/wiki/Documentation_Improvement
# Non-English versions of the site used to be accessed via
# a language path specifier. This now uses a get variable.
RedirectMatch permanent /de/(.*) /$1?lang=de_DE
RedirectMatch permanent /de$ /?lang=de_DE
RedirectMatch permanent /es/(.*) /$1?lang=es_ES
RedirectMatch permanent /en/(.*) /$1?lang=en_US
RedirectMatch permanent /fr/(.*) /$1?lang=fr_FR
RedirectMatch permanent /hu/(.*) /$1?lang=hu_HU
RedirectMatch permanent /it/(.*) /$1?lang=it_IT
RedirectMatch permanent /ja/(.*) /$1?lang=ja_JP
RedirectMatch permanent /nb/(.*) /$1?lang=nb_NB
RedirectMatch permanent /nl/(.*) /$1?lang=nl_NL
RedirectMatch permanent /pl/(.*) /$1?lang=pl_PL
RedirectMatch permanent /pt_PT/(.*) /$1?lang=pt_PT
RedirectMatch permanent /zh_CN/(.*) /$1?lang=zh_CN
RedirectMatch permanent /zh_TW/(.*) /$1?lang=zh_TW