Subversion Repositories Sites.tela-botanica.org

Compare Revisions

Ignore whitespace Rev 1115 → Rev 1116

/trunk/.htaccess
61,11 → 61,11
# Raccourci pour Projets
RewriteRule ^Local/tela/documents/fr/(.*)$ http://www.tela-botanica.org/client/projet/fichiers/$1 [L,R=301]
RewriteRule ^projets/$ papyrus.php?menu=291 [L]
RewriteRule ^projets/([^/]+)$ papyrus.php?menu=291&id_projet=$1 [L]
RewriteRule ^projets/([^/]+)/([^/]*)$ papyrus.php?menu=291&id_projet=$1&act=$2 [L]
RewriteRule ^projets[-/]([0-9]+)$ papyrus.php?menu=291&id_projet=$1 [L]
RewriteRule ^projets[-/]([0-9]+)[-/]([a-z]+)$ papyrus.php?menu=291&id_projet=$1&act=$2 [L]
RewriteRule ^projets/[^/]+/wikini/wikini/(.*)$ wikini/$1 [L]
RewriteRule ^projets/([^/]+)/wikini/(.*)$ papyrus.php?menu=291&id_projet=$1&act=wikini&wiki=$2 [L]
RewriteRule ^projets/([^/]+)/documents/([^/]*)$ papyrus.php?menu=291&id_projet=$1&act=documents&id_repertoire=$2 [L]
RewriteRule ^projets[-/]([0-9]+)[-/]documents[-/]([0-9]+)$ papyrus.php?menu=291&id_projet=$1&act=documents&id_repertoire=$2 [L]
RewriteRule ^projets/([^/]+)/(telechargement)/(.*)$ papyrus.php?menu=291&id_projet=$1&act=documents&id_document=$3&service=$2 [L]
RewriteRule ^projets/([^/]+)/documents/(.*)/(telechargement)/(.*)$ papyrus.php?menu=291&id_projet=$1&act=documents&id_repertoire=$2&id_document=$4&service=$3 [L]
#Redirection définitive concernant l'ancien emplacement des Wikini dans l'appli Projets
75,6 → 75,9
# Raccourci pour Projets-Forums
RewriteRule ^forum_gestionnature$ papyrus.php?menu=134&forum=gestionnature [L]
 
# Redirections
RewriteRule ^tapirlink(.*)$ http://api.tela-botanica.org/tapirlink$1 [L,R=301]
 
# Raccourci pour eFlore :
# OpenSearch
RewriteRule ^eflore\/(BDNFF)\/([*0-9.]*)\/opensearch$ papyrus.php?menu=39&module=open_search&cpr=$1&cprv=$2 [L]
165,6 → 168,9
RewriteRule ^bdnff\/nn([0-9]*)$ /bdtfx-nn-$1 [R=301]
########
 
######## REDIRECTION à SUPPRIMER à TERMES
RewriteRule ^eflore\/cel2\/cel2.html$ /appli:cel [R=301]
########
 
# Raccourci pour eFlore ANCIEN : les nn pour les autres référentiels que bdnff
RewriteRule ^bdnfgm_nn([0-9]*)$ papyrus.php?menu=135&flore=ANT&xslt=identitetaxon.xsl&servicexml=donneidentitestaxons.php&numclass=1&numnom=$1 [L]
186,14 → 192,28
 
#Redirections pour le nouvel eflore
RewriteRule ^(bdtfx)$ papyrus.php?menu=899&referentiel=$1&niveau=2 [QSA,L]
#Redirection avec onglets (qui nécessite une redirection 302 vers la page papyrus correspondante pour configurer eflore avec la bonne url, qui sera ensuite "beautifée" par l'api history du navigateur)
RewriteRule ^(bdtfx)[-/:]nn[-/:]([0-9]+)[-/:]([a-z]+)$ http://www.tela-botanica.org/page:eflore_bdtfx?referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2&onglet=$3 [QSA,L,R=302]
RewriteRule ^(bdtfx)[-/:]nn[-/:]([0-9]+)$ papyrus.php?menu=899&referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [QSA,L]
RewriteRule ^(bdtfx)[-/:]([0-9]+)[-/:]nn[-/:]([0-9]+)$ papyrus.php?menu=899&referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [QSA,L]
 
RewriteRule ^(isfgm|page:isfgm)(.)*$ http://www.tela-botanica.org/page:bdtxa [QSA]
RewriteRule ^(bdtxa)$ papyrus.php?menu=135&referentiel=$1&niveau=2 [QSA,L]
#Redirection avec onglets (qui nécessite une redirection 302 vers la page papyrus correspondante pour configurer eflore avec la bonne url, qui sera ensuite "beautifée" par l'api history du navigateur)
RewriteRule ^(isfgm|page:isfgm|bdtxa)[-/:]nn[-/:]([0-9]+)[-/:]([a-z]+)$ http://www.tela-botanica.org/page:bdtxa?referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2&onglet=$3 [QSA,L,R=302]
RewriteRule ^(bdtxa)[-/:]nn[-/:]([0-9]+)$ papyrus.php?menu=135&referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [QSA,L]
RewriteRule ^(bdtxa)[-/:]([0-9]+)[-/:]nn[-/:]([0-9]+)$ papyrus.php?menu=135&referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [QSA,L]
 
RewriteRule ^(isfan)$ papyrus.php?menu=899&referentiel=$1&niveau=2 [QSA,L]
#Redirection avec onglets (qui nécessite une redirection 302 vers la page papyrus correspondante pour configurer eflore avec la bonne url, qui sera ensuite "beautifée" par l'api history du navigateur)
RewriteRule ^(isfan)[-/:]nn[-/:]([0-9]+)[-/:]([a-z]+)$ http://www.tela-botanica.org/page:isfan?referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2&onglet=$3 [QSA,L,R=302]
RewriteRule ^(isfan)[-/:]nn[-/:]([0-9]+)$ papyrus.php?menu=899&referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [QSA,L]
RewriteRule ^(isfan)[-/:]([0-9]+)[-/:]nn[-/:]([0-9]+)$ papyrus.php?menu=899&referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [QSA,L]
 
# Redirection pour le nouvel eFlore de test
RewriteRule ^test[-/:](bdtfx|bdtxa|isfan)[-/:]nn[-/:]([0-9]+)[-/:]([a-z]+)$ /eflore-test/consultation?referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2&onglet=$3 [QSA,L,R=302]
RewriteRule ^test[-/:](bdtfx|bdtxa|isfan)[-/:]nn[-/:]([0-9]+)$ /eflore-test/consultation?referentiel=$1&niveau=2&module=fiche&action=fiche&num_nom=$2 [L]
 
# Redirection d'url pour les vielles applications de Papyrus
RewriteRule ^([^\/]+)&(.*)$ http://www.tela-botanica.org/$1?$2 [QSA,L,R=301]
# Redirection d'url pour les vieux permaliens
201,7 → 221,7
RewriteRule ^([^\/\?:.]+)$ http://www.tela-botanica.org/page:$1 [QSA,L,R=301]
# Redirection d'url pour les permaliens d'origine contenant menu_
# TODO : voir pourquoi les query string ne sont pas transmise... : [MAJ 07 mars 2007 JPM : cela à l'air de marcher]
#RewriteRule ^page:menu_([0-9]+)$ http://www.tela-botanica.org/page:$1 [QSA,L,R=301]
# RewriteRule ^page:menu_([0-9]+)$ http://www.tela-botanica.org/page:$1 [QSA,L,R=301]
# Redirection d'url pour les anciennes url utilisant les codes numériques pour les sites
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} ^/papyrus\.php\?site=([0-9]+)(&?(.*))$
RewriteRule ^papyrus.php$ http://www.tela-botanica.org/site:%1?%3 [L,R=301]
223,18 → 243,29
 
# Réecriture d'url pour les applications GWT/JS
RewriteRule ^appli:cel$ http://www.tela-botanica.org/eflore/cel/appli/cel2.html [QSA,L,R=302]
RewriteRule ^appli:cel-img:([0-9]{3})([0-9]{3})([0-9]{3})([^.]+)(.jpg|)$ eflore/cel/images/$1/$2/$4/$1_$2_$3_$4.jpg [L]
RewriteRule ^appli:cel-img-test:([0-9]{3})([0-9]{3})([0-9]{3})([^.]+)(.jpg|)$ eflore-test/cel/images/$1/$2/$4/$1_$2_$3_$4.jpg [L]
RewriteRule ^appli:coel$ http://www.tela-botanica.org/eflore/coel/Coel.html [QSA,L,R=302]
RewriteRule ^appli:del http://www.tela-botanica.org/eflore/del/del.html [NE,QSA,L]
RewriteRule ^appli:identiplante$ http://www.tela-botanica.org/eflore/del/del.html [QSA,L]
RewriteRule ^appli:pictoflora$ http://www.tela-botanica.org/eflore/del/del.html#page_recherche_images [NE,QSA,L]
# RewriteRule ^appli:cel-img:([0-9]{3})([0-9]{3})([0-9]{3})([^.]+)(.jpg|)$ eflore/cel/images/$1/$2/$4/$1_$2_$3_$4.jpg [L]
# RewriteRule ^appli:cel-img-test:([0-9]{3})([0-9]{3})([0-9]{3})([^.]+)(.jpg|)$ eflore-test/cel/images/$1/$2/$4/$1_$2_$3_$4.jpg [L]
# RewriteRule ^appli:cel-img-test:([0-9]{3})([0-9]{3})([0-9]{3})([^.]+)(.jpg|)$ http://api-test.tela-botanica.org/images/$1/$2/$4/$1_$2_$3_$4.jpg [L]
RewriteRule ^appli:coel$ http://www.tela-botanica.org/eflore/coel/appli/Coel.html [QSA,L,R=302]
RewriteRule ^appli:del /eflore/del/appli/del.php [NE,QSA,L]
RewriteRule ^appli:identiplante$ /eflore/del/appli/identiplante.php#page_recherche_observations [QSA,NE,L]
RewriteRule ^appli:pictoflora$ /eflore/del/appli/pictoflora.php#page_recherche_images [NE,QSA,L]
 
# Réecriture d'url pour les applications
RewriteRule ^profil:([0-9]+)$ papyrus.php?menu=22&m=annuaire_fiche_utilisateur_consultation&id_annuaire=1&id_utilisateur=$1 [QSA,L]
 
# Réecriture d'url pour les Services
RewriteRule ^service:cel:(.+)$ eflore/cel/jrest/$1 [QSA,L]
RewriteRule ^service:del:(.+)$ eflore/del/services/$1 [QSA,L]
RewriteRule ^service:annuaire:(.+)$ client/annuaire_nouveau/actuelle/jrest/$1 [QSA,L]
# RewriteRule ^service:cel:(.+)$ eflore/cel/jrest/$1 [QSA,L]
# RewriteRule ^service:del:(.+)$ eflore/del/services/$1 [QSA,L]
# RewriteRule ^service:coel:(.+)$ eflore/coel/jrest/$1 [QSA,L]
RewriteRule ^service:annuaire:(.+)$ /reseau/annuaire/jrest/$1 [QSA,L]
 
# Réecriture d'url pour les Services - mode rÃtrocompaibilità Cirad
RewriteRule ^service:cel:(.+)$ http://api.tela-botanica.org/service:cel:$1 [QSA,L]
RewriteRule ^service:del:(.+)$ http://api.tela-botanica.org/service:del:$1 [QSA,L]
# RewriteRule ^service:coel:(.+)$ eflore/coel/jrest/$1 [QSA,L]
RewriteRule ^appli:cel-img:(.+)$ http://api.tela-botanica.org/img:$1 [L]
 
# Réecriture d'url pour photoflora : attention bien laisser le index.php car le serveur photoflora ne supporte pas le htaccess
RewriteRule ^service:eflore:([0-9]\.[0-9])/photoflora/images$ http://photoflora.free.fr/eflore-photoflora/services/index.php/$1/projets/photoflora/images [QSA,L]
RewriteRule ^service:eflore:([0-9]\.[0-9])/([^/]+)/(v[0-9]+[_.][0-9]+|[+*]|v[0-9]+)/([^/]+)/?(.*)?$ /eflore/services/$1/projets/$2/$4/$5?version.projet=$3
241,38 → 272,33
RewriteRule ^service:eflore:([0-9]\.[0-9])/([^/]+)/(.+)$ /eflore/services/$1/projets/$2/$3
 
# Raccourcis pour eFlore v5
RewriteRule ^donnees:([^/]+)/(.*)$ eflore/donnees/$1/$2 [L]
RewriteRule ^eflore/donnees/(.+)$ http://api.tela-botanica.org/donnees/$1 [QSA,L]
RewriteRule ^eflore:wiki:([^/]+)nt([0-9]+)$ http://www.tela-botanica.org/wikini/eFloreRedaction/wakka.php?wiki=$1nt$2 [L]
RewriteRule ^donnees:([^/]+)/(.*)$ eflore/donnees/$1/$2 [L]
RewriteRule ^mobile:([^-]+)-nn-([0-9]+)$ /eflore/consultation/index_mobile.php?module=mobile&referentiel=$1&num_nom=$2 [L,R]
RewriteRule ^qrcode:([^-]+)-nn-([0-9]+)$ /tmp/eflore_v5_cache/qrcode/$2.png [L]
 
RewriteRule ^eflore-test:wiki:([^/]+)nt([0-9]+)$ http://www.tela-botanica.org/wikini/eFloreRedactionTest/wakka.php?wiki=$1nt$2 [L]
RewriteRule ^test\/nn\/([0-9]+)$ /eflore-test/consultation?referentiel=bdtfx&niveau=2&module=fiche&action=fiche&num_nom=$1 [L]
RewriteRule ^mobile:([^-]+)-nn-([0-9]+)$ /eflore-test/consultation/index_mobile.php?module=mobile&referentiel=$1&num_nom=$2 [L,R]
 
# Réecriture d'url pour les widgets
#RewriteRule ^widget:cel:mobile$ eflore/cel/widget/modules/mobile/mobile.html [QSA,L]
RewriteRule ^widget:cel:(.+)$ eflore/cel/widget/$1 [QSA,L]
RewriteRule ^widget:(cel|del|coel):(.+)$ eflore/$1/widget/$2 [QSA,L]
RewriteRule ^widget:reseau:(.+)$ reseau/widget/$2 [QSA,L]
 
# Temporaire pour test...
RewriteRule ^appli:test:del$ http://www.tela-botanica.org/eflore-test/del-test/del.html [L,QSA]
RewriteRule ^appli:test:identiplante$ http://www.tela-botanica.org/eflore-test/del-test/del.html [L,NE,QSA]
RewriteRule ^appli:test:pictoflora$ http://www.tela-botanica.org/eflore-test/del-test/del.html#page_recherche_images [L,NE,QSA]
RewriteRule ^test-service:del:(.+)$ eflore-test/del-test/services/$1 [QSA,L]
RewriteRule ^service:test:del:(.+)$ eflore-test/del-test/services/$1 [QSA,L]
 
# Réecriture pour les appli, services, widgets de test...
RewriteRule ^eflore-test:wiki:([^/]+)nt([0-9]+)$ http://www.tela-botanica.org/wikini/eFloreRedactionTest/wakka.php?wiki=$1nt$2 [L]
RewriteRule ^mobile-test:([^-]+)-nn-([0-9]+)$ /eflore-test/consultation/index_mobile.php?module=mobile&referentiel=$1&num_nom=$2 [L,R]
RewriteRule ^appli-test:eflore$ http://www.tela-botanica.org/eflore-test/consultation/index.php [QSA,L,R=302]
RewriteRule ^appli-test:cel(2|)$ http://www.tela-botanica.org/eflore-test/cel/appli/cel2.html [QSA,L,R=302]
RewriteRule ^test-service:cel:(.+)$ eflore-test/cel/jrest/$1 [QSA,L]
RewriteRule ^service:test:cel:(.+)$ eflore-test/cel/jrest/$1 [QSA,L]
RewriteRule ^appli-test:identiplante$ /eflore-test/del/appli/identiplante.php [QSA,NE,L]
RewriteRule ^appli-test:pictoflora$ /eflore-test/del/appli/pictoflora.php [NE,QSA,L]
RewriteRule ^appli-test:coel$ http://www.tela-botanica.org/eflore-test/coel/appli/Coel.html [QSA,L,R=302]
 
RewriteRule ^test-service:eflore:([0-9]\.[0-9])/photoflora/images$ http://photoflora.free.fr/eflore-photoflora/services/index.php/$1/projets/photoflora/images [QSA,L]
RewriteRule ^test-service:eflore:([0-9]\.[0-9])/([^/]+)/(v[0-9]+[_.][0-9]+|[+*]|v[0-9]+)/([^/]+)/?(.*)?$ /eflore-test/services/$1/projets/$2/$4/$5?version.projet=$3
RewriteRule ^test-service:eflore:([0-9]\.[0-9])/([^/]+)/(.+)$ /eflore-test/services/$1/projets/$2/$3
RewriteRule ^service-test:del:(.+)$ eflore-test/del-test/services/$1 [QSA,L]
RewriteRule ^service-test:cel:(.+)$ eflore-test/cel/jrest/$1 [QSA,L]
RewriteRule ^service-test:coel:(.+)$ eflore-test/coel/jrest/$1 [QSA,L]
RewriteRule ^service-test:eflore:([0-9]\.[0-9])/photoflora/images$ http://photoflora.free.fr/eflore-photoflora/services/index.php/$1/projets/photoflora/images [QSA,L]
RewriteRule ^service-test:eflore:([0-9]\.[0-9])/([^/]+)/(v[0-9]+[_.][0-9]+|[+*]|v[0-9]+)/([^/]+)/?(.*)?$ /eflore-test/services/$1/projets/$2/$4/$5?version.projet=$3
RewriteRule ^service-test:eflore:([0-9]\.[0-9])/([^/]+)/(.+)$ /eflore-test/services/$1/projets/$2/$3
 
RewriteRule ^widget-test:cel:(.+)$ eflore-test/cel/widget/$1 [QSA,L]
RewriteRule ^widget-test:(cel|del|coel):(.+)$ eflore-test/$1/widget/$2 [QSA,L]
 
# Redirection suite à des changements à supprimer dans le futur
RewriteRule ^eflore/cel2/(cel2.html.*)$ http://www.tela-botanica.org/eflore/cel/appli/$1 [QSA,L,R=301]
RewriteRule ^eflore/cel2/(.+)$ http://www.tela-botanica.org/eflore/cel/$1 [QSA,L,R=301]
RewriteRule ^appli:cel2$ http://www.tela-botanica.org/eflore/cel/appli/cel2.html [QSA,L,R=301]
 
# Gestion des erreurs 404
ErrorDocument 404 /erreur_http.php?erreur=404
ErrorDocument 404 /erreur_http.php?erreur=404