Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.
b_b edited this page Jul 4, 2016 · 8 revisions

Fichier .htaccess

Geodiv utilise des urls personnalisées de SPIP, voici les règles à ajouter à votre fichier .htaccess :

# urls geodiv
RewriteRule ^media([0-9]+)?$		spip.php?page=article&id_article=$1 [QSA,L]
RewriteRule ^cat([0-9]+)$			spip.php?page=rubrique&id_rubrique=$1 [QSA,L]
RewriteRule ^tag([0-9]+)$			spip.php?page=mot&id_mot=$1 [QSA,L]
RewriteRule ^auteur([0-9]+)$		spip.php?page=auteur&id_auteur=$1 [QSA,L]
RewriteRule ^ticket([0-9]+)$		spip.php?page=ticket&id_ticket=$1 [QSA,L]
RewriteRule ^album([0-9]+)$			spip.php?page=album&id_collection=$1 [QSA,L]
RewriteRule ^newsletter([0-9]+)$	spip.php?page=newsletter&id_newsletter=$1 [QSA,L]

Mettre à jour une ancienne installation par svn

# geodiv est passé sur github
rm -rvf plugins-dist/geodiversite
svn co https://github.com/brunob/geodiversite/trunk/geodiversite plugins-dist/geodiversite

# les plugins communs avec mediaspip sont passé sur la zone
rm -rvf plugins-dist/mediaspip_player/
svn co svn://zone.spip.org/spip-zone/_plugins_/mediaspip_player/trunk plugins-dist/mediaspip_player
rm -rvf plugins-dist/diogene
svn co svn://zone.spip.org/spip-zone/_plugins_/diogene/diogene/trunk plugins-dist/diogene
rm -rvf plugins/diogene_geo/ plugins/diogene_licence/ plugins/diogene_mots/
svn co svn://zone.spip.org/spip-zone/_plugins_/diogene/diogene_complements/diogene_geo/trunk plugins/diogene_geo
svn co svn://zone.spip.org/spip-zone/_plugins_/diogene/diogene_complements/diogene_licence/trunk plugins/diogene_licence
svn co svn://zone.spip.org/spip-zone/_plugins_/diogene/diogene_complements/diogene_mots/trunk plugins/diogene_mots
rm -rvf plugins/jquery_file_upload/
svn co svn://zone.spip.org/spip-zone/_plugins_/jquery_file_upload/trunk plugins-dist/jquery_file_upload
rm -rvf plugins-dist/emballe_medias/
svn co svn://zone.spip.org/spip-zone/_plugins_/emballe_medias/emballe_medias/branches/v1.3 plugins-dist/emballe_medias
rm -rvf plugins/media_collections/
svn co svn://zone.spip.org/spip-zone/_plugins_/emballe_medias/media_collections/trunk plugins/media_collections

# virer z-dist qui n'est plus nécessité par geodiv 1.5
rm -rvf plugins-dist/zpip-dist/
svn up plugins-dist/geodiversite

# suivre les plugins qui sont passés en trunk/branches (28.04.2015)
rm -rvf plugins-dist/saisies/ && svn co svn://zone.spip.org/spip-zone/_plugins_/saisies/trunk plugins-dist/saisies
rm -rvf plugins/fulltext/ && svn co svn://zone.spip.org/spip-zone/_plugins_/fulltext/trunk plugins/fulltext
rm -rvf plugins/mailsubscribers/ && svn co svn://zone.spip.org/spip-zone/_plugins_/mailsubscribers/trunk plugins/mailsubscribers
Clone this wiki locally