2017-06-15 20:04:01 +02:00
|
|
|
RewriteEngine On
|
2017-06-19 23:06:51 +02:00
|
|
|
RewriteBase /
|
2017-06-15 20:04:01 +02:00
|
|
|
|
2021-04-29 12:21:05 +02:00
|
|
|
# redirect wrong language code we used before
|
|
|
|
RewriteRule ^zh_tw/?(.*)$ /zh-tw/$1 [L,R=301]
|
|
|
|
|
2019-01-23 16:43:29 +01:00
|
|
|
# redirect all requests to non-existing translations to EN
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteRule ^[a-z-]*/(.+) $1 [L,R=301]
|
|
|
|
|
2022-08-15 13:19:11 +02:00
|
|
|
# Redirect /sharepic to sharepic generator
|
|
|
|
#RewriteRule ^sharepic$ https://sharepic.fsfe.org/pmpc [R=301,L]
|
|
|
|
RewriteRule ^([a-z-]*/)?sharepics?/? https://sharepic.fsfe.org/pmpc [R=301,L]
|
|
|
|
|
2017-06-19 23:18:10 +02:00
|
|
|
# Redirect 404 errors to nice page
|
2017-03-22 15:20:18 +01:00
|
|
|
ErrorDocument 404 /404.html
|