RewriteRule ^/(?!devel/website/errors/)(.*/)?404\.(.+)\.html$ /devel/website/errors/404.$2.html [L]
# the joys of backwards compatibility
- RedirectPermanent /Lists-Archives https://lists.debian.org
- RedirectPermanent /search https://search.debian.org
- RedirectPermanent /Packages https://packages.debian.org
- RedirectPermanent /lintian https://lintian.debian.org
-
- RedirectPermanent /SPI https://www.spi-inc.org
-# RedirectPermanent /OpenHardware http://www.openhardware.org
- RedirectPermanent /OpenSource https://opensource.org
- RedirectPermanent /Bugs/db/ix/pseudopackages.html /Bugs/pseudo-packages
+ Redirect /Lists-Archives https://lists.debian.org
+ Redirect /search https://search.debian.org
+ Redirect /Packages https://packages.debian.org
+ Redirect /lintian https://lintian.debian.org
+
+ Redirect /SPI https://www.spi-inc.org
+# Redirect /OpenHardware http://www.openhardware.org
+ Redirect /OpenSource https://opensource.org
+ Redirect /Bugs/db/ix/pseudopackages.html /Bugs/pseudo-packages
RewriteEngine on
RewriteRule ^/Bugs/db/pa/l([^/]+).html$ https://bugs.debian.org/$1
RewriteRule ^/Bugs/db/[[:digit:]][[:digit:]]/([[:digit:]][[:digit:]][[:digit:]]+).html$ https://bugs.debian.org/$1
UserDir disabled
</IfModule>
- RedirectPermanent /devel/todo/ /devel/wnpp/help_requested_bypop
- RedirectPermanent /doc/FAQ /doc/manuals/debian-faq
- RedirectPermanent /doc/manuals/debian-fr-howto /doc/manuals/fr/debian-fr-howto
- RedirectPermanent /doc/manuals/reference /doc/manuals/debian-reference
- RedirectPermanent /doc/packaging-manuals/developers-reference /doc/manuals/developers-reference
- RedirectPermanent /doc/packaging-manuals/packaging-tutorial /doc/manuals/packaging-tutorial
- RedirectPermanent /doc/prospective-packages /devel/wnpp/
- RedirectPermanent /devel/maintainer_contacts /intro/organization
- RedirectPermanent /devel/debian-installer/gtk-frontend https://wiki.debian.org/DebianInstaller/GUI
- RedirectPermanent /zh/ /international/Chinese/
- RedirectPermanent /chinese/ /international/Chinese/
- RedirectPermanent /devel/help /devel/join/
- RedirectPermanent /distrib/books /doc/books
- RedirectPermanent /distrib/floppyinst /distrib/netinst
- RedirectPermanent /distrib/netboot /distrib/netinst
- RedirectPermanent /distrib/vendors /CD/vendors/
- RedirectPermanent /distrib/cd /CD/
- RedirectPermanent /distrib/cdinfo /CD/vendors/info
- RedirectPermanent /related_links /misc/related_links
- RedirectPermanent /ports/laptops /misc/laptops/
- RedirectPermanent /misc/README.mirrors /mirror/list
- RedirectPermanent /misc/README.non-US /mirror/list.non-US
- RedirectPermanent /misc/awards /News/awards
- RedirectPermanent /misc/bsd.license https://opensource.org/licenses/BSD-3-Clause
- RedirectPermanent /misc/laptops https://wiki.debian.org/InstallingDebianOn
- RedirectPermanent /misc/memberships /intro/organization#memberships
- RedirectPermanent /misc/merchandise /events/merchandise
- RedirectPermanent /intl /international
- RedirectPermanent /ports/armel /ports/arm
- RedirectPermanent /ports/armhf /ports/arm
- RedirectPermanent /ports/arm64 /ports/arm
- RedirectPermanent /ports/mipsel /ports/mips
- RedirectPermanent /ports/mips64el /ports/mips
- RedirectPermanent /ports/kfreebsd-amd64 /ports/kfreebsd-gnu
- RedirectPermanent /ports/kfreebsd-i386 /ports/kfreebsd-gnu
- RedirectPermanent /ports/sparc64 /ports/sparc
- RedirectPermanent /ports/s390x /ports/s390
- RedirectPermanent /ports/ppc64 /ports/powerpc
- RedirectPermanent /ports/ppc64el /ports/powerpc
- RedirectPermanent /ports/powerpcspe /ports/powerpc
+ Redirect /devel/todo/ /devel/wnpp/help_requested_bypop
+ Redirect /doc/FAQ /doc/manuals/debian-faq
+ Redirect /doc/manuals/debian-fr-howto /doc/manuals/fr/debian-fr-howto
+ Redirect /doc/manuals/reference /doc/manuals/debian-reference
+ Redirect /doc/packaging-manuals/developers-reference /doc/manuals/developers-reference
+ Redirect /doc/packaging-manuals/packaging-tutorial /doc/manuals/packaging-tutorial
+ Redirect /doc/prospective-packages /devel/wnpp/
+ Redirect /devel/maintainer_contacts /intro/organization
+ Redirect /devel/debian-installer/gtk-frontend https://wiki.debian.org/DebianInstaller/GUI
+ Redirect /zh/ /international/Chinese/
+ Redirect /chinese/ /international/Chinese/
+ Redirect /devel/help /devel/join/
+ Redirect /distrib/books /doc/books
+ Redirect /distrib/floppyinst /distrib/netinst
+ Redirect /distrib/netboot /distrib/netinst
+ Redirect /distrib/vendors /CD/vendors/
+ Redirect /distrib/cd /CD/
+ Redirect /distrib/cdinfo /CD/vendors/info
+ Redirect /related_links /misc/related_links
+ Redirect /ports/laptops /misc/laptops/
+ Redirect /misc/README.mirrors /mirror/list
+ Redirect /misc/README.non-US /mirror/list.non-US
+ Redirect /misc/awards /News/awards
+ Redirect /misc/bsd.license https://opensource.org/licenses/BSD-3-Clause
+ Redirect /misc/laptops https://wiki.debian.org/InstallingDebianOn
+ Redirect /misc/memberships /intro/organization#memberships
+ Redirect /misc/merchandise /events/merchandise
+ Redirect /intl /international
+ Redirect /ports/armel /ports/arm
+ Redirect /ports/armhf /ports/arm
+ Redirect /ports/arm64 /ports/arm
+ Redirect /ports/mipsel /ports/mips
+ Redirect /ports/mips64el /ports/mips
+ Redirect /ports/kfreebsd-amd64 /ports/kfreebsd-gnu
+ Redirect /ports/kfreebsd-i386 /ports/kfreebsd-gnu
+ Redirect /ports/sparc64 /ports/sparc
+ Redirect /ports/s390x /ports/s390
+ Redirect /ports/ppc64 /ports/powerpc
+ Redirect /ports/ppc64el /ports/powerpc
+ Redirect /ports/powerpcspe /ports/powerpc
Redirect /ports/riscv64 https://wiki.debian.org/RISC-V
Redirect /ports/x32 https://wiki.debian.org/X32Port
Redirect /ports/sh4 https://wiki.debian.org/SH4
- RedirectPermanent /mirror/official_sponsors /mirror/sponsors
- RedirectPermanent /mirror/official /mirror/list
- RedirectPermanent /mirror/mirrors_full.html /mirror/list-full.html
- RedirectPermanent /mirrors /mirror
- RedirectPermanent /News/project /News/weekly
- RedirectPermanent /releases/2.0 /releases/hamm
- RedirectPermanent /releases/2.1 /releases/slink
- RedirectPermanent /releases/2.2 /releases/potato
- RedirectPermanent /releases/3.0 /releases/woody
- RedirectPermanent /releases/3.1 /releases/sarge
- RedirectPermanent /releases/4.0 /releases/etch
- RedirectPermanent /releases/5.0 /releases/lenny
- RedirectPermanent /releases/6.0 /releases/squeeze
- RedirectPermanent /releases/7 /releases/wheezy
- RedirectPermanent /releases/8 /releases/jessie
- RedirectPermanent /releases/9 /releases/stretch
- RedirectPermanent /releases/10 /releases/buster
- RedirectPermanent /releases/unstable /releases/sid
- RedirectPermanent /support/ /support
+ Redirect /mirror/official_sponsors /mirror/sponsors
+ Redirect /mirror/official /mirror/list
+ Redirect /mirror/mirrors_full.html /mirror/list-full.html
+ Redirect /mirrors /mirror
+ Redirect /News/project /News/weekly
+ Redirect /releases/2.0 /releases/hamm
+ Redirect /releases/2.1 /releases/slink
+ Redirect /releases/2.2 /releases/potato
+ Redirect /releases/3.0 /releases/woody
+ Redirect /releases/3.1 /releases/sarge
+ Redirect /releases/4.0 /releases/etch
+ Redirect /releases/5.0 /releases/lenny
+ Redirect /releases/6.0 /releases/squeeze
+ Redirect /releases/7 /releases/wheezy
+ Redirect /releases/8 /releases/jessie
+ Redirect /releases/9 /releases/stretch
+ Redirect /releases/10 /releases/buster
+ Redirect /releases/unstable /releases/sid
+ Redirect /support/ /support
# Upper-case URLs were a bad idea
- RedirectPermanent /bugs /Bugs
- RedirectPermanent /news /News
- RedirectPermanent /mailinglists /MailingLists
- RedirectPermanent /cd /CD
+ Redirect /bugs /Bugs
+ Redirect /news /News
+ Redirect /mailinglists /MailingLists
+ Redirect /cd /CD
- RewriteRule ^/ports/freebsd(.*) /ports/kfreebsd-gnu/ [R=301]
- RewriteRule ^/devel/debian-installer/report-template(.*) /releases/stable/i386/ch05s04.html#submit-bug [NE,R=301]
- RewriteRule ^/devel/debian-installer/hooks(.*) https://d-i.alioth.debian.org/doc/internals/apb.html [R=301]
- RewriteRule ^/doc/packaging-manuals/mime-policy(.*) /doc/debian-policy/ch-opersys.html#s-mime [NE,R=302]
+ RewriteRule ^/ports/freebsd(.*) /ports/kfreebsd-gnu/ [R]
+ RewriteRule ^/devel/debian-installer/report-template(.*) /releases/stable/i386/ch05s04.html#submit-bug [NE,R]
+ RewriteRule ^/devel/debian-installer/hooks(.*) https://d-i.alioth.debian.org/doc/internals/apb.html [R]
+ RewriteRule ^/doc/packaging-manuals/mime-policy(.*) /doc/debian-policy/ch-opersys.html#s-mime [NE,R]
RewriteRule ^/volatile/index.* - [S=1]
- RewriteRule ^/volatile/.+ /volatile/ [L,R=301]
- RewriteRule ^/devel/debian-volatile/.* /volatile/ [R=301]
+ RewriteRule ^/volatile/.+ /volatile/ [L,R]
+ RewriteRule ^/devel/debian-volatile/.* /volatile/ [R]
# Offer a Redirect to DSA without knowing year #474730
RewriteMap dsa txt:<%= @wwwdo_document_root %>/security/map-dsa.txt
- RewriteRule ^/security/dsa-(\d+)(\..*)? /security/${dsa:$1}$2 [R=301]
+ RewriteRule ^/security/dsa-(\d+)(\..*)? /security/${dsa:$1}$2 [R]
# Compatibility after SGML -> DocBook
# Debian Reference #624239
RewriteMap reference txt:<%= @wwwdo_document_root %>/doc/map-reference.txt
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/ch-support$1 !-f
- RewriteRule ^/doc/manuals/debian-reference/ch-support(.*) /support$1 [L,R=301]
+ RewriteRule ^/doc/manuals/debian-reference/ch-support(.*) /support$1 [L,R]
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/${reference:$1}$2 -f
- RewriteRule ^/doc/manuals/debian-reference/ch-([^\.]+)(.+) /doc/manuals/debian-reference/${reference:$1}$2 [L,R=301]
- RewriteRule ^/doc/manuals/debian-reference/ch-([^\.]+)$ /doc/manuals/debian-reference/${reference:$1} [R=301]
+ RewriteRule ^/doc/manuals/debian-reference/ch-([^\.]+)(.+) /doc/manuals/debian-reference/${reference:$1}$2 [L,R]
+ RewriteRule ^/doc/manuals/debian-reference/ch-([^\.]+)$ /doc/manuals/debian-reference/${reference:$1} [R]
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/apa$1 -f
- RewriteRule ^/doc/manuals/debian-reference/ap-appendix(.+) /doc/manuals/debian-reference/apa$1 [L,R=301]
- RewriteRule ^/doc/manuals/debian-reference/ap-appendix$ /doc/manuals/debian-reference/apa [R=301]
+ RewriteRule ^/doc/manuals/debian-reference/ap-appendix(.+) /doc/manuals/debian-reference/apa$1 [L,R]
+ RewriteRule ^/doc/manuals/debian-reference/ap-appendix$ /doc/manuals/debian-reference/apa [R]
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/footnotes$1 !-f
- RewriteRule ^/doc/manuals/debian-reference/footnotes(.+) /doc/manuals/debian-reference/index$1 [L,R=301]
- RewriteRule ^/doc/manuals/debian-reference/footnotes$ /doc/manuals/debian-reference/ [R=301]
+ RewriteRule ^/doc/manuals/debian-reference/footnotes(.+) /doc/manuals/debian-reference/index$1 [L,R]
+ RewriteRule ^/doc/manuals/debian-reference/footnotes$ /doc/manuals/debian-reference/ [R]
# DevRef filename changes c2016
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/scope(\.[a-z]{2})?.html $1/ch01$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/new-maintainer(\.[a-z]{2})?.html $1/ch02$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/developer-duties(\.[a-z]{2})?.html $1/ch03$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/resources(\.[a-z]{2})?.html $1/ch04$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/pkgs(\.[a-z]{2})?.html $1/ch05$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/best-pkging-practices(\.[a-z]{2})?.html $1/ch06$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/beyond-pkging(\.[a-z]{2})?.html $1/ch07$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/l10n(\.[a-z]{2})?.html $1/ch08$2.html
- RedirectMatch permanent ^(/doc/manuals/developers-reference)/tools(\.[a-z]{2})?.html $1/apa$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/scope(\.[a-z]{2})?.html $1/ch01$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/new-maintainer(\.[a-z]{2})?.html $1/ch02$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/developer-duties(\.[a-z]{2})?.html $1/ch03$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/resources(\.[a-z]{2})?.html $1/ch04$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/pkgs(\.[a-z]{2})?.html $1/ch05$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/best-pkging-practices(\.[a-z]{2})?.html $1/ch06$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/beyond-pkging(\.[a-z]{2})?.html $1/ch07$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/l10n(\.[a-z]{2})?.html $1/ch08$2.html
+ RedirectMatch ^(/doc/manuals/developers-reference)/tools(\.[a-z]{2})?.html $1/apa$2.html
# New Maintainers' Guide
- RewriteRule ^/doc/(manuals/)?maint-guide/ch-(.*) /doc/manuals/maint-guide/$2 [R=301]
- RewriteRule ^/doc/(manuals/)?maint-guide/footnotes(.*) /doc/manuals/maint-guide/index$2 [R=301]
+ RewriteRule ^/doc/(manuals/)?maint-guide/ch-(.*) /doc/manuals/maint-guide/$2 [R]
+ RewriteRule ^/doc/(manuals/)?maint-guide/footnotes(.*) /doc/manuals/maint-guide/index$2 [R]
# Compatibility after Debian Policy changed to build with Sphinx (bug #877367)
- RewriteRule ^/doc/debian-policy/footnotes.html(.*) /doc/debian-policy/ [R=301,L]
+ RewriteRule ^/doc/debian-policy/footnotes.html(.*) /doc/debian-policy/ [R,L]
# Canonical place for manuals under /doc/manuals/
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/$1 -d
- RewriteRule ^/doc/([^/]+)/?(.*)? /doc/manuals/$1/$2 [L,R=301]
- RewriteRule ^/doc/manuals/?$ /doc/ [L,R=301]
+ RewriteRule ^/doc/([^/]+)/?(.*)? /doc/manuals/$1/$2 [L,R]
+ RewriteRule ^/doc/manuals/?$ /doc/ [L,R]
# Relocation of blends pages
- RewriteRule ^/devel/hamradio(.*)$ /blends/hamradio$1 [R=301,L]
+ RewriteRule ^/devel/hamradio(.*)$ /blends/hamradio$1 [R,L]
# Relocation of derivatives pages
- RewriteRule ^/misc/children-distros(?:\.html)?$ /derivatives/ [R=301,L]
- RewriteRule ^/misc/children-distros(\.[^\.]+(?:\.html)?)$ /derivatives/index$1 [R=301,L]
+ RewriteRule ^/misc/children-distros(?:\.html)?$ /derivatives/ [R,L]
+ RewriteRule ^/misc/children-distros(\.[^\.]+(?:\.html)?)$ /derivatives/index$1 [R,L]
# Relocation of memberships information
- RewriteRule ^/misc/memberships(?:\.html)?$ /intro/organization$1#memberships [R=301,L]
- RewriteRule ^/misc/memberships(\.[^\.]+(?:\.html)?)$ /intro/organization$1#memberships [R=301,L]
+ RewriteRule ^/misc/memberships(?:\.html)?$ /intro/organization$1#memberships [R,L]
+ RewriteRule ^/misc/memberships(\.[^\.]+(?:\.html)?)$ /intro/organization$1#memberships [R,L]
</Macro>
<Macro common-www.d.o>