You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

47 lines
2.3 KiB

################ REGLAGES PERSONNALISES ######################
# forcer le www
RewriteCond %{HTTP_HOST} ^spip.net [NC]
RewriteRule ^(.*) https://www.spip.net/$1 [R=301,L]
# site spipnet
RewriteRule ^([a-z]{2,3}(_[a-z]{2,3}){0,2})_?$ spip.php?page=secteur&sitelang=$1 [QSA,L]
RewriteRule ^(plan|site)$ spip.php?page=$1 [QSA,L]
RewriteRule ^(oc)_(plan|site)$ spip.php?page=$2&lang=oc_lnc [QSA,L]
RewriteRule ^([a-z]{2,3})_(plan|site)$ spip.php?page=$2&lang=$1 [QSA,L]
RewriteRule ^([a-z]{2,3})/$ $1 [R,L]
RewriteRule ^([a-z_]+_)?rubrique([0-9]+)\.html$ spip.php?page=rubrique&id_rubrique=$2 [QSA,L]
RewriteRule ^([a-z_]+_)?article([0-9]+)\.html$ spip.php?page=article&id_article=$2 [QSA,L]
RewriteRule ^([a-z_]+_)?breve([0-9]+)\.html$ spip.php?page=breve&id_breve=$2 [QSA,L]
RewriteRule ^([a-z_]+_)?download$ spip.php?page=article [QSA,L]
RewriteRule ^(([a-z_]+_)?download)/ $1 [R]
RewriteRule ^([a-z_]+)_suivi$ spip.php?page=article [QSA,L]
# mots cles / index general / glossaire
RewriteRule ^@oc$ spip.php?page=mot&lang=oc_lnc [QSA,L]
RewriteRule ^@([a-z_0-9,-]*)$ spip.php?page=mot&lang=$1 [QSA,L]
# aide en ligne
RewriteRule ^aide/([a-z_0-9]+)-aide\.html$ spip.php?page=aide&lang_aide=$1 [QSA,L]
# cas des elements pris dans img_pack
RewriteRule ^aide(/ecrire)?(/puce(_rtl)?\..*|/img_pack/.+) dist/images$2 [L]
#images facon (aide/IMG/...)
RewriteRule ^aide/IMG/cache/TeX-(.*) IMG/cache-TeX/$1 [L]
RewriteRule ^aide(/IMG/.*) $1 [L]
# images facon (aide/fr/xxxx.gif)
RewriteRule ^aide/AIDE(/.*/.+) AIDE$1 [L]
# css
RewriteRule ^aide(/spip_admin\.css) $1 [L]
# redirections diverses, canal historique :p
RewriteRule /tex.php http://math.spip.org/tex.php [QSA,P]
RewriteRule ^spip-dev/(contrib|SQUELETTES)(/.*)?$ https://contrib.spip.net/ [R,L]
RewriteRule ^spip-dev/BUGS/ /bugs/ [R,L]
RewriteRule ^bugs/ https://core.spip.net/projects/spip/issues [R,L]
RewriteRule ^backend-sites-sous-spip.php3$ spip.php?page=backend-sites-sous-spip [QSA,L]
RewriteRule ^trad.php3 /trad.php [R,L]
RewriteRule ^trad_lang.php https://trad.spip.net/ [R,L]
RewriteRule ^trad_bilan.php https://trad.spip.net/spip.php?page=tradlang_bilan [R,L]
# pour le plugin https://gitlab.com/JamesRezo/supported-versions
RewriteRule ^supported-versions\.svg$ spip.php?page=supported-versions.svg [QSA,L]