source: spip-zone/_galaxie_/www.spip.net/squelettes/branches/2017/htaccess.txt @ 109050

Last change on this file since 109050 was 109050, checked in by brunobergot@…, 18 months ago

ne garder que la partie perso du htaccess + forcer le www

File size: 2.1 KB
Line 
1################ REGLAGES PERSONNALISES ######################
2
3# forcer le www
4RewriteCond %{HTTP_HOST} ^spip.net [NC]
5RewriteRule ^(.*) https://www.spip.net/$1 [R=301,L]
6
7# site spipnet
8RewriteRule ^([a-z]{2,3}(_[a-z]{2,3}){0,2})_?$ spip.php?page=secteur&sitelang=$1 [QSA,L]
9RewriteRule ^(plan|site)$      spip.php?page=$1       [QSA,L]
10RewriteRule ^(oc)_(plan|site)$ spip.php?page=$2&lang=oc_lnc [QSA,L]
11RewriteRule ^([a-z]{2,3})_(plan|site)$ spip.php?page=$2&lang=$1 [QSA,L]
12RewriteRule ^([a-z]{2,3})/$    $1 [R,L]
13RewriteRule ^([a-z_]+_)?rubrique([0-9]+)\.html$ spip.php?page=rubrique&id_rubrique=$2 [QSA,L]
14RewriteRule ^([a-z_]+_)?article([0-9]+)\.html$ spip.php?page=article&id_article=$2 [QSA,L]
15RewriteRule ^([a-z_]+_)?breve([0-9]+)\.html$ spip.php?page=breve&id_breve=$2 [QSA,L]
16RewriteRule ^([a-z_]+_)?download$      spip.php?page=article [QSA,L]
17RewriteRule ^(([a-z_]+_)?download)/    $1 [R]
18RewriteRule ^([a-z_]+)_suivi$  spip.php?page=article [QSA,L]
19
20# mots cles / index general / glossaire
21RewriteRule ^@oc$              spip.php?page=mot&lang=oc_lnc [QSA,L]
22RewriteRule ^@([a-z_0-9,-]*)$  spip.php?page=mot&lang=$1 [QSA,L]
23
24# aide en ligne
25RewriteRule ^aide/([a-z_0-9]+)-aide\.html$     aide.php3?lang_aide=$1 [QSA,L]
26# cas des elements pris dans img_pack
27RewriteRule ^aide(/ecrire)?(/puce(_rtl)?\..*|/img_pack/.+) dist/images$2 [L]
28#images facon (aide/IMG/...)
29RewriteRule ^aide/IMG/cache/TeX-(.*)           IMG/cache-TeX/$1 [L]
30RewriteRule ^aide(/IMG/.*)                     $1 [L]
31# images facon (aide/fr/xxxx.gif)
32RewriteRule ^aide/AIDE(/.*/.+)                 AIDE$1 [L]
33# css
34RewriteRule ^aide(/spip_admin\.css)            $1 [L]
35# appel direct de l'aide
36RewriteRule ^aide/(aide_index.php3|layer.js)$          ecrire/$1 [QSA,L]
37
38# redirections diverses, canal historique :p
39RewriteRule  /tex.php http://math.spip.org/tex.php [QSA,P]
40RewriteRule ^spip-dev/(contrib|SQUELETTES)(/.*)?$       https://contrib.spip.net/ [R,L]
41RewriteRule ^spip-dev/BUGS/ /bugs/ [R,L]
42RewriteRule ^bugs/      https://core.spip.net/projects/spip/issues [R,L]
43RewriteRule ^backend-sites-sous-spip.php3$      spip.php?page=backend-sites-sous-spip [QSA,L]
Note: See TracBrowser for help on using the repository browser.