ameliorations de htaccess.txt

Diverses propositions d'amélioration de source:spip/htaccess.txt

rubrique([0-9]+)(\.html)?$

(Sources "spip-dev/35275":http://article.gmane.org/gmane.comp.web.spip.devel/35275, "spip-dev/35279":http://article.gmane.org/gmane.comp.web.spip.devel/35279, "spip-dev/41392":http://article.gmane.org/gmane.comp.web.spip.devel/41392, "toggg":http://article.gmane.org/gmane.comp.web.spip.devel/41396)

-RewriteRule rubrique([0-9]+)\.html$	spip.php?page=rubrique&id_rubrique=$1 [QSA,L]
-RewriteRule article([0-9]+)\.html$	spip.php?page=article&id_article=$1 [QSA,L]
-RewriteRule breve([0-9]+)\.html$	spip.php?page=breve&id_breve=$1 [QSA,L]
-RewriteRule mot([0-9]+)\.html$		spip.php?page=mot&id_mot=$1 [QSA,L]
-RewriteRule auteur([0-9]+)\.html$	spip.php?page=auteur&id_auteur=$1 [QSA,L]
-RewriteRule site([0-9]+)\.html$	spip.php?page=site&id_syndic=$1 [QSA,L]
+RewriteRule ^rubrique([0-9]+)\.html$	spip.php?page=rubrique&id_rubrique=$1 [QSA,L]
+RewriteRule ^article([0-9]+)\.html$	spip.php?page=article&id_article=$1 [QSA,L]
+RewriteRule ^breve([0-9]+)\.html$	spip.php?page=breve&id_breve=$1 [QSA,L]
+RewriteRule ^mot([0-9]+)\.html$		spip.php?page=mot&id_mot=$1 [QSA,L]
+RewriteRule ^auteur([0-9]+)\.html$	spip.php?page=auteur&id_auteur=$1 [QSA,L]
+RewriteRule ^site([0-9]+)\.html$	spip.php?page=site&id_syndic=$1 [QSA,L]
diff htaccess.txt
 [[RewriteRule]] site([0-9]+)\.html$	spip.php?page=site&id_syndic=$1 [QSA,L]
 # Compatibilite avec les anciennes URLS appelant directement des fichiers php
-RewriteRule ^(rubrique|article|breve|mot|auteur|site|agenda|backend|backend-breves|distrib|forum|ical|plan|recherche|resume|sommaire|sommaire_texte)\.php3?$	spip.php?page=$1 [QSA,L]
+RewriteRule ^(rubrique|article|breve|mot|auteur|site|agenda|backend|backend-breves|distrib|forum|ical|plan|recherche|sommaire|sommaire_texte)\.php3?$	spip.php?page=$1 [QSA,L]
+RewriteRule ^resume.phpr3?	spip.php?page=sommaire [QSA,L]
 [[RewriteRule]] ^page.phpr3?	spip.php [QSA,L]
 [[RewriteRule]] ^spip_cal\.php3?$	spip.php?action=ical [QSA,L]
 [[RewriteRule]] ^spip_rss\.php3?$	spip.php?action=rss [QSA,L]
#################################
# gestion des erreurs 404
# voir http://www.spip.net/fr_article3226.html
# Pour que le serveur http renvoie les erreurs 404 vers SPIP, supprimer le '#'

# [[ErrorDocument]] 404 /spip.php?page=404

(et indiquer cette possibilité dans "La gestion des pages 404":http://www.spip.net/fr_article3226.html)

("Nicolas Krebs":http://www.spip-contrib.net/Nicolas-Krebs)