src/.htaccess
author Callek@gmail.com
Thu, 21 Feb 2013 10:45:08 +0000
changeset 1059 eafda52be59cbaceb3e5c786025688512565fb7f
parent 1054 e7f90432995c616ee199742c7d6cb320969c8270
child 1068 92550c5b4d65113a3c324379794f36b488dad3d9
permissions -rw-r--r--
Bug 843517 - Update SeaMonkey website for 2.16. pending-r=Jens

# see http://fantasai.inkedblade.net/web-design/l10n about how to deal with L10n

AddDefaultCharset UTF-8
LanguagePriority en
ForceLanguagePriority Prefer Fallback
Options +MultiViews
DirectoryIndex index

ErrorDocument 404 /404

RedirectMatch temp ^/security/(.*)$ http://www.mozilla.org/security/$1

# this enables us to actually point to (pre)releases as needed
Redirect temp /releases/beta http://www.seamonkey-project.org/releases/
Redirect temp /releases/stable http://www.seamonkey-project.org/releases/

# hu-HU 1.x package has wrong URL for updates, redirect to correct one
Redirect permanent /releases/releases/updates/hu-HU.rdf http://www.seamonkey-project.org/releases/updates/hu-HU.rdf

# pages moved since site existence
Redirect permanent /dev/trademark http://www.seamonkey-project.org/legal/trademark
Redirect permanent /donate https://donate.mozilla.org/page/contribute/seamonkey
RedirectMatch permanent ^/doc/2\.1/?(.*)$ http://www.seamonkey-project.org/doc/$1

# flexible solution for hard-coded link in SeaMonkey Help
Redirect temp /doc/troubleshooting http://www.seamonkey-project.org/releases/seamonkey2.1/#troubleshooting

# redirect from top level to actual location of release pages
RedirectMatch temp ^/([0-9]{1,2}\.[0-9]{1,2}.*) http://www.seamonkey-project.org/releases/$1

# 2.1rc2 shipped as 2.1pre, redirect 2.1pre to the 2.1 relnotes
Redirect permanent /releases/seamonkey2.1pre/ http://www.seamonkey-project.org/releases/seamonkey2.1/

# redirect Oilspill releases to the corresponding relnotes
RedirectMatch permanent ^/releases/seamonkey2\.3\.[123]/ http://www.seamonkey-project.org/releases/seamonkey2.3/
RedirectMatch permanent ^/releases/seamonkey2\.4\.1/ http://www.seamonkey-project.org/releases/seamonkey2.4/
RedirectMatch permanent ^/releases/seamonkey2\.6\.1/ http://www.seamonkey-project.org/releases/seamonkey2.6/
RedirectMatch permanent ^/releases/seamonkey2\.7\.[12]/ http://www.seamonkey-project.org/releases/seamonkey2.7/
RedirectMatch permanent ^/releases/seamonkey2\.9\.1/ http://www.seamonkey-project.org/releases/seamonkey2.9/
RedirectMatch permanent ^/releases/seamonkey2\.10\.1/ http://www.seamonkey-project.org/releases/seamonkey2.10/
RedirectMatch permanent ^/releases/seamonkey2\.12\.1/ http://www.seamonkey-project.org/releases/seamonkey2.12/
RedirectMatch permanent ^/releases/seamonkey2\.13\.[12]/ http://www.seamonkey-project.org/releases/seamonkey2.13/
RedirectMatch permanent ^/releases/seamonkey2\.14\.1/ http://www.seamonkey-project.org/releases/seamonkey2.14/
RedirectMatch permanent ^/releases/seamonkey2\.15\.[12]/ http://www.seamonkey-project.org/releases/seamonkey2.15/

# redirect relnotes of -pre versions to the get involved page
RedirectMatch temp ^/releases/seamonkey.*pre/ http://www.seamonkey-project.org/dev/get-involved
Redirect temp /releases/seamonkey1.5a/ http://www.seamonkey-project.org/dev/get-involved
# redirect relnotes of rapid release train trunk/aurora (need to exclude 1.0-2.1 alphas)
RedirectMatch temp ^/releases/seamonkey(?![12]\.[01]a).*a[12]/ http://www.seamonkey-project.org/dev/get-involved

<FilesMatch "-atom(\..+)?$">
  ForceType application/atom+xml
  #ForceType application/xml
</FilesMatch>