# Le serveur doit suivre les liens symboliques :
Options +FollowSymlinks
Options +FollowSymlinks -Indexes

# Activation du module de r��criture d'URL :
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^professeur-francais.jemepresente.fr$
#RewriteRule ^(.*) http://www.professeur-francais.jemepresente.fr/$1 [QSA,L,R=301]

RewriteEngine on
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^(.*)$ http://www.professeur-francais.jemepresente.fr/$1 [L,R=301]

#RewriteCond %{HTTP_HOST} ^jemepresente\.eu [NC]
#RewriteRule ^(.*)$ http://www.professeur-francais.jemepresente.fr/$1 [L,R=301]

#RewriteCond %{HTTP_HOST} ^jemepresente\.fr [NC]
#RewriteRule ^(.*)$ http://www.professeur-francais.jemepresente.fr/$1 [L,R=301]


#RewriteCond %{http} !=on
#RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

DirectoryIndex index.php


#--------------------------------------------------
# R�gles de r��criture d'URL :
#--------------------------------------------------

#  annonce categorie:
RewriteRule ^annonce-de-categorie-([0-9a-zA-Z_-]+) annonce_categorie.php?Categorie=$1  [L]

#  annonce categorie pub:
RewriteRule ^categorie-([0-9a-zA-Z_-]+) annonce_categorie_pub.php?Categorie=$1  [L]



#  annonce ville:
RewriteRule ^annonce-a-ville-([0-9a-zA-Z_-]+) annonce_ville.php?ville==$1  [L]

#  details-profil:
RewriteRule ^details-profil-([0-9]+)  detail_profil.php?id_srv=$1 [L]

#  details-annonce:
RewriteRule ^details-annonce-([0-9]+)  detail_annonce.php?x=$1 [L]


#  recherche_annonce:
RewriteRule ^recherche-annonces recherche_annonce.php [L]

#  recherche_profil:
RewriteRule ^recherche-profils recherche_profil.php [L]


#  phonedetails:
RewriteRule ^mon-numero-([0-9]+) phone_details.php?can_id=$1  [L]


#  Tableau de bord:
# RewriteRule ^tableau-de-bord  statistiqueCandidat500.php [L]

#  phonedetails:
RewriteRule ^appeler-([a-z][0-9]+)-([0-9]+) phone_details.php?id=$1&can_id=$2

#  annonces:
RewriteRule ^annonces /services.php


#  mentions_legales:
RewriteRule ^mentions-legales /mentions_legales.php

#  conditions_generales:
RewriteRule ^conditions-generales /conditions_generales.php


#  login_candidatfr:
RewriteRule ^connexion  login_candidat.php [L]

#  inscription_candidat:
RewriteRule ^inscription-([0-9a-zA-Z_-]+)  inscription_candidat.php?nomcampangne=$1 [L]

#  inscription_candidat:
RewriteRule ^inscription  inscription_candidat.php


#  Creer annonce:
RewriteRule ^creer-annonce  deposer_annonce.php  [L]


#  Modifier annonce: 
RewriteRule ^modifier-annonce-([0-9a-zA-Z_-]+)-([0-9]+)  modifier_annonce.php?ann=$1&id_srv=$2 [L]

#  Modifier annonce2A:
RewriteRule ^modifier-annonce2A-([0-9a-zA-Z_-]+)-([0-9]+)  modifier_annonce2A.php?ann=$1&id_srv=$2 [L]

#  Supprimer annonce:
RewriteRule ^supprimer-annonce-([0-9]+)  supprimer_annonce.php?id_srv=$1 [L]

#  Mes annonce:
RewriteRule ^mes-annonce  mes-annonces.php [L]


#  Mes favoris:
RewriteRule ^Tableau-de-bord TableauDeBord.php  [L]


RewriteRule ^ajouter-au-favoris-([0-9a-zA-Z_-]+)-([0-9]+) favoris_cand_edit.php?ann=$1&id_srv=$2  [L]

#  Supprimer favoris:
RewriteRule ^supprimer-annonce-favoris-([0-9]+)  supprimer_favoris.php?id_srv=$1 [L]

#  Mes identifiants:
RewriteRule ^mes-identifiants identifiants_cand_edit.php  [L]


#  mon_profil:
RewriteRule ^mon-profil  mon_profil.php  

# profil:
RewriteRule ^reussi  profil.php  [L]

#  Modifier photo:
RewriteRule ^modifier-photo  modif_doc.php [L]

#  filter :
RewriteRule ^filter  filter.php [L]

#  Modifier photo traitement:
RewriteRule ^modification-photo  modif_doc_trait.php [L]

#  ajouter photo:
RewriteRule ^ajouter-photo  ajouter_doc.php [L]

#  photo-Supp:
RewriteRule ^photo-Supp  supp_doc.php [L]

#  ajouter photo traitement:
RewriteRule ^ajout-photo  ajouter_doc_trait.php [L] 

#  ajouter ajout pieces traitement:
RewriteRule ^ajout-pieces  ajout_pieces.php [L] 

#  Phone details Profil1:
RewriteRule ^telephone-([0-9a-zA-Z_-]+)-([0-9]+)  phone_details_2.php?ann=$1&can_id=$2  [L]

#  Phone details favoris:
RewriteRule ^telephone-favoris-([0-9]+)-([0-9]+) phone_details_fav.php?id=$1&can_id=$2 [L]

RewriteRule ^blog/wp-admin/  blog/wp-admin/index.php [L]


#  Page d'espagne:

#  annonces:
RewriteRule ^espagne/annonces  espagne/services.php

#  mentions_legales:
RewriteRule ^espagne/mentions-legales espagne/mentions_legales.php

#  conditions_generales:
RewriteRule ^espagne/conditions-generales espagne/conditions_generales.php

#  inscription_candidat :
RewriteRule ^espagne/inscription-([0-9a-zA-Z_-]+)  espagne/inscription_candidat.php?nomcampangne=$1 [L]

#  inscription_candidat:
RewriteRule ^espagne/inscription  espagne/inscription_candidat.php


#  login_candidat:
RewriteRule ^espagne/connexion  espagne/login_candidat.php [L]

RewriteRule ^espagne/connexion-([a-z]+)  espagne/login_candidat.php?msg=$1 [L]
 
 
#  login_candidat espagne:
RewriteRule ^espagne/connexion  espagne/login_candidat.php [L]

RewriteRule ^espagne/connexion-([a-z]+)  espagne/login_candidat.php?msg=$1 [L] 

#  Creer annonce espagne:
RewriteRule ^espagne/creer-annonce  espagne/deposer_annonce.php  [L]

#  Mes favoris:
RewriteRule ^espagne/Tableau-de-bord espagne/TableauDeBord.php  [L]

#  Mes identifiants:
RewriteRule ^espagne/mes-identifiants espagne/identifiants_cand_edit.php  [L]

#  mon_profil:
RewriteRule ^espagne/mon-profil  espagne/mon_profil.php 


#  login_candidatProFrancais:
RewriteRule ^connexion  login_candidat.php [L]

#  inscription_candidatProFrancais :
RewriteRule ^inscription-([0-9a-zA-Z_-]+)  pr_incri.php?nomcampangne=$1 [L]

#  inscription_candidatProFrancais:
RewriteRule ^inscription  pr_incri.php

#  recherche_professeur_francais:
RewriteRule ^professeurs-([0-9a-zA-Z_-]+)  recherche_profil.php?profession=$1 [L] 

#  recherche_all__professeur_francais:
RewriteRule ^professeurs  recherche_profil.php [L] 


























