.htaccess 9.05 KB
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#####################################################################
# Miscellaneous configuration
#####################################################################

AddType application/octet-stream .dmg
AddType application/octet-stream .rpm
AddType application/octet-stream .ipk
AddType application/octet-stream .vlt

ErrorDocument 403 /403.html
ErrorDocument 404 /404.html

RewriteEngine on
RewriteRule \.svn /404.html [L]
RewriteRule removed/ /403.html [L]
RewriteRule HOWTO.Makefile /404.html [L]
17
RewriteRule templates /404.html [L]
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
18 19 20 21 22 23 24 25 26 27 28 29 30
RewriteRule ^favicon.gif$ /favicon.ico [L]

Redirect /videos http://download2.videolan.org/videos

#######################################################################
# Redirects for moved pages
#######################################################################

################# Project ####################

# Contact / Team / Events
RewriteRule ^team.html$ /videolan/team/index.html [R=permanent,L]
RewriteRule ^team/$ /videolan/team/index.html [R=permanent,L]
31
RewriteRule ^events$ /videolan/events/ [R=permanent,L]
32
RewriteRule ^project$ /videolan/ [R=permanent,L]
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

# Support
RewriteRule ^lists.html$ /support/lists.html [R=permanent,L]
RewriteRule ^vlc/lists.html$ /support/lists.html [R=permanent,L]
RewriteRule ^support/consultants(.*)$ /videolan/partners.html [R=permanent,L]
RewriteRule ^support/irc(.*)$ /support/index.html [R=permanent,L]
RewriteRule ^irc(.*)$ /support/index.html [R=permanent,L]
RewriteRule ^support/bug-reporting.* /support/index.html [R=permanent,L]

RewriteRule ^vlc/bug-reporting.html$ /support/bug-reporting.html [R=permanent,L]

# Contribute
RewriteRule ^project/contribute.html$ /contribute.html [R=permanent,L]

# Press
RewriteRule ^pr2(.*)$ /press/2$1 [R=permanent,L]
RewriteRule ^eucd.html$ /press/eucd.html [R=permanent,L]
RewriteRule ^patents.html$ /press/patents.html [R=permanent,L]
RewriteRule ^news.msg$ /news.html [R=permanent,L]

#################### VLC ###########################

55 56
RewriteRule ^stats/(.*)$ /vlc/stats/$1 [R=permanent,L]

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
# Misc
RewriteRule ^packages(.*)$ /pub/vlc$1 [R=permanent,L]
RewriteRule ^vlc/doc.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^screenshots(.*)$ /vlc/screenshots$1 [R=permanent,L]
RewriteRule ^live.(.*)$ /vlc/index.html [R=permanent,L]

# Downloads
Redirect /mirror.html http://www.videolan.org/mirror.php

RewriteRule ^vlc/download.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^download.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^vlc/bsd.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/download-unix.html$ /vlc/download-sources.html [R=permanent,L]
RewriteRule ^vlc/download-linux.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^vlc/download-source.html$ /vlc/download-sources.html [R=permanent,L]
Redirect /vlc/download-mandrake.html http://www.videolan.org/vlc/download-mandriva.php
RewriteRule ^vlc/partners.html /videolan/partners.html [R=permanent,L]
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
74
RewriteRule ^vlc/eyetv(.*)$ /vlc/download-eyetv.html [R=permanent,L]
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139

# Features
#RewriteRule ^vlc/features(.*)$ http://wiki.videolan.org/VLCFeatures [R=permanent,L]
RewriteRule ^vlc/beos.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/linux.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/macosx.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/qnx.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/solaris.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/familiar.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/todo.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/windows.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^streaming/features.html$ /streaming-features.html [R=permanent,L]

# Skins
RewriteRule ^download-skins2-go.php /vlc/download-skins2-go.php [R=permanent,L]
RewriteRule ^vlc/skins.html$ /vlc/skins.php [R=permanent,L]
RewriteRule ^vlc/download-skins2\..*$ /vlc/skins.php [R=permanent,L]
RewriteRule ^vlc/skins-(.*)$ /vlc/skins.php [R=permanent,L]

##################### Streaming #####################

RewriteRule ^vlma(.*)$ /projects/vlma$1 [R=permanent,L]
RewriteRule ^streaming/$ /vlc/streaming.html [R=permanent,L]
RewriteRule ^intro.html$ /vlc/streaming.html [R=permanent,L]

RewriteRule ^vlcs(.*)$ /network$1 [R=permanent,L]
RewriteRule ^vls/(.*)$ /streaming/index.html [R=permanent,L]
RewriteRule ^vlms/(.*)$ /streaming/index.html [R=permanent,L]
RewriteRule ^network/(.*)$ /streaming/index.html [R=permanent,L]
RewriteRule ^streaming/download.*$ /vlc/streaming.html [R=permanent,L]

#################### Documentation ######################

# New directory structure
Redirect permanent /doc/videolan-howto/videolan-howto-en.html http://www.videolan.org/doc/videolan-howto/en/videolan-howto-en.html
Redirect permanent /doc/vlc-user-guide/vlc-user-guide-en.html http://www.videolan.org/doc/vlc-user-guide/en/vlc-user-guide-en.html
Redirect permanent /doc/vls-user-guide/vls-user-guide-en.html http://www.videolan.org/doc/vls-user-guide/en/vls-user-guide-en.html
Redirect permanent /doc/faq/index.html http://www.videolan.org/doc/faq/en/videolan-faq-en.html
Redirect permanent /doc/videolan-howto/index.html http://www.videolan.org/doc/videolan-howto/en/videolan-howto-en.html
Redirect permanent /doc/vlc-user-guide/index.html http://www.videolan.org/doc/vlc-user-guide/en/vlc-user-guide-en.html
Redirect permanent /doc/vls-user-guide/index.html http://www.videolan.org/doc/vls-user-guide/en/vls-user-guide-en.html
Redirect permanent /doc/faq/videolan-faq-en.html http://www.videolan.org/doc/faq/en/videolan-faq-en.html
Redirect permanent /doc/faq/videolan-faq-fr.html http://www.videolan.org/doc/faq/en/videolan-faq-fr.html
Redirect permanent /doc/faq/videolan-faq-es.html http://www.videolan.org/doc/faq/en/videolan-faq-es.html

#The VideoLAN quickstart does not exist anymore
Redirect permanent /doc/videolan-quickstart http://www.videolan.org/doc/
Redirect permanent /doc/en/videolan-quickstart-en.html http://www.videolan.org/doc/
Redirect permanent /doc/fr/videolan-quickstart-fr.html http://www.videolan.org/doc/

# Some dumb people link to us with doc//$LANG/document
Redirect permanent /doc/fr/vlc-user-guide http://www.videolan.org/doc/vlc-user-guide/fr
Redirect permanent /doc/fr/videolan-howto http://www.videolan.org/doc/videolan-howto/fr
Redirect permanent /doc/fr/vls-user-guide http://www.videolan.org/doc/vls-user-guide/fr

Redirect permanent /doc/en/vlc-user-guide http://www.videolan.org/doc/vlc-user-guide/en
Redirect permanent /doc/en/videolan-howto http://www.videolan.org/doc/videolan-howto/en
Redirect permanent /doc/en/vls-user-guide http://www.videolan.org/doc/vls-user-guide/en

RewriteRule ^vlc/doc/vlc-howto.html$ /doc/vlc-user-guide/ [R=permanent,L]
RewriteRule ^doc/faq-vlc/faq/(.*)$ /doc/faq/ [R=permanent,L]
RewriteRule ^doc/faq/videolan-faq.html$ /doc/faq/ [R=permanent,L]

####################### Moved to developers #########################

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
140 141
Redirect permanent /cgi-bin http://webchat.freenode.net/
Redirect permanent /cvs http://wiki.videolan.org/Subversion
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187

RewriteRule ^dtsdec.html /developers/libdca.html [R=permanent,L]
RewriteRule ^x264.html /developers/x264.html [R=permanent,L]
RewriteRule ^libdca.html /developers/libdca.html [R=permanent,L]

RewriteRule ^vlc/changelog.html /developers/vlc/ChangeLog [R=permanent,L]
RewriteRule ^vls/changelog.html /developers/vls/ChangeLog [R=permanent,L]
RewriteRule ^cvs.html http://wiki.videolan.org/Subversion [R=permanent,L]
RewriteRule ^vlc/developers.html /developers/vlc/devel_doc.html [R=permanent,L]
RewriteRule ^vls/developers.html /developers/vls/devel_doc.html [R=permanent,L]
RewriteRule ^libdvdcss/download.html http://www.videolan.org/pub/videolan/libdvdcss/ [R=permanent,L]
RewriteRule ^libdvdcss.* /developers/libdvdcss.html [R=permanent,L]
RewriteRule ^libdvbpsi/download.html http://www.videolan.org/pub/videolan/libdvbpsi/ [R=permanent,L]
RewriteRule ^libdvbpsi.* /developers/libdvbpsi.html [R=permanent,L]
RewriteRule ^libdvdplay/download.html http://www.videolan.org/pub/videolan/libdvdplay/ [R=permanent,L]
RewriteRule ^libdvdplay.* /developers/libdvdplay.html [R=permanent,L]

###################### Images ############################

RewriteRule ^images/([^/]*)bri7x(.*)$ /images/goodies/$1bri7x$2 [R=permanent,L]
RewriteRule ^images/videolan_org(.*)$ /images/goodies/videolan_org$1 [R=permanent,L]
RewriteRule ^images/cone-soppera(.*)$ images/goodies/cone-soppera$1 [R=permanent,L]


############### Security advisories ######################

RewriteRule ^sa(.*).html$ /security/sa$1.html [R=permanent,L]
Redirect permanent /patches http://www.videolan.org/security/patches

##################### Unsorted misc stuff ####################

RewriteRule ^tests/(.*)$ /rez/ [R=permanent,L]

RewriteRule ^vlc/dx7headers.tgz http://download.videolan.org/pub/videolan/testing/contrib/win32-dx7headers.tgz [R=permanent,L]
RewriteRule ^vlc/(.*).tgz$ /removed/$1.tgz [R=permanent,L]
RewriteRule ^vlc/(.*).bz2$ /removed/$1.bz2 [R=permanent,L]
RewriteRule ^freedvd.html$ /removed/freedvd.html [R=permanent,L]

#typos
RewriteRule ^vic(.*)$ /vlc$1 [R=permanent,L]
RewriteRule ^VLC(.*)$ /vlc$1 [R=permanent,L]

# We get many 404 for this one
Redirect permanent debian/ http://www.videolan.org

Redirect permanent /webirc http://webchat.freenode.net/