#############################################################

# Fichier .htaccess                               SPIP v 2.0 #

#                                                            #

# Permet de controler les URLs et la version de php utilisee #

# Compatible avec les URLs 'html', 'propres' et 'propres2'   #

# Permet aussi d'effectuer la transition de .PHP 3 vers .PHP #

#                                                            #

# Pour utiliser ce fichier renommez-le '.htaccess' dans le   #

# repertoire racine du site, en veillant a ne pas ecraser un #

# .htaccess personnalise qui s'y trouverait deja             #

#                                                            #

# Attention certains hebergeurs desactivent tout ou partie   #

# des fonctions du fichier .htaccess ; celui-ci est donc     #

# indicatif - en cas de difficulte voir sur les forums SPIP  #

##############################################################



RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]





################ CONFIGURATION ######################



#redirect mobile browsers



#RewriteCond %{HTTP_USER_AGENT} "ipod|iphone|ipad|android|palm|googlebot-mobile" [NC]          

#RewriteRule (.*) http://m.culturemediatic.fr/ [R=301,L] 

  

# ceci te permet rediriger index.html vers nouveau lien

#Redirect /index.html http://www.visites-virtuelles-france.com/



### Configuration sous-repertoire

# Chez la plupart des hebergeurs il faut indiquer "RewriteBase /"

# sinon modifiez cette ligne



RewriteBase /





# SPIP version 'php' - si vous avez d'anciennes adresses en '.php[3]',

# supprimez le '#' sur les lignes qui suivent pour rediriger les acces

# errones vers le .php correspondant



#RewriteCond %{REQUEST_FILENAME} -f

#RewriteRule ^(.+)\.php[3]$ $1.php [QSA,L]



# Fin version

###





################ REGLAGES PERSONNALISES ######################

# Inscrivez ci-dessous vos reglages supplementaires

RewriteRule ^contactez-nous\.html3?$	spip.php?page=contact [QSA,L]
RewriteRule ^generateur-qrcode\.html3?$	spip.php?page=generateur-qrcode [QSA,L]

RedirectPermanent /trucs_astuces/qr.php https://www.culturemediatic.fr/generateur-qrcode.html




# redirections videos Google

RedirectPermanent /videos_google_vv/france3centre.html http://www.youtube.com/watch?v=cQWHQOYilsg

RedirectPermanent /videos_google_vv/biptv.html http://www.youtube.com/watch?v=T0p3Rt_dJ6o

RewriteRule ^404(\.html)?$	spip.php?page=404 [QSA,L]




################ GESTIONS DES URLS SPIP #######################



# Deux pseudo-actions a present evacuees

# N'y at-il pas moyen de REMPLACER un nom dans la QueryString ?

RewriteCond %{QUERY_STRING} action=rss

RewriteRule spip.php	spip.php?page=rss [QSA,L]



RewriteCond %{QUERY_STRING} action=ical

RewriteRule spip.php	spip.php?page=ical_prive [QSA,L]



###

# Si le fichier ou repertoire demande existe

# ignorer toutes les regles qui suivent

RewriteCond %{REQUEST_FILENAME} -f

RewriteRule "." - [skip=100]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule "." - [skip=100]

#

###





###

# Compatibilite avec les URLS "html" (pour transition sympa)

# voir fichier ecrire/urls/html.php

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]

# 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|sommaire|sommaire_texte)\.php3?$	spip.php?page=$1 [QSA,L]

RewriteRule ^resume.php[3]?	spip.php?page=sommaire [QSA,L]

RewriteRule ^page.php[3]?	spip.php [QSA,L]

RewriteRule ^spip_cal\.php3?$	spip.php?page=ical_prive [QSA,L]

RewriteRule ^spip_rss\.php3?$	spip.php?page=rss [QSA,L]







# Fin compatibilite

###



###

# URLs "propres", "propres2", "libres", "arbo"



RewriteRule ^[^\.]+(\.html)?$		spip.php [QSA,E=url_propre:$0,L]



# Fin URLs "propres" et "propres2"

###



###

# Divers



# bloquer les acces aux repertoires .svn/ (SPIP, plugins, squelettes...)

RewriteRule ^(.*/)?\.svn/ - [F]



###

# Fichiers "standards" (si absents de la racine)

#

RewriteRule ^robots[.]txt$      spip.php?page=robots.txt [QSA,L]



RewriteRule ^sitemap[.]xml$      spip.php?page=sitemap.xml [QSA,L]

##



# expirer les images (pour contourner gros bug MSIE sur le cache)

# note : a decommenter si vous voulez tester

#<IfModule mod_expires.c>

# ExpiresActive on

# ExpiresByType image/gif A3600

# ExpiresByType image/jpeg A3600

# ExpiresByType image/png A3600

#</IfModule>



#################################

# 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 404.html



#

###



################anti aspirateur de site###############



RewriteCond %{HTTP_USER_AGENT} .*Atomic\_Email\_Hunter* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*HTTrack* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*Filangy* [OR]

RewriteCond %{HTTP_USER_AGENT} .*BackWeb* [OR]

RewriteCond %{HTTP_USER_AGENT} .*BackStreet* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Bandit* [OR]

RewriteCond %{HTTP_USER_AGENT} .*BatchFTP* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Bullseye* [OR]

RewriteCond %{HTTP_USER_AGENT} .*bumblebee* [OR]

RewriteCond %{HTTP_USER_AGENT} .*capture* [OR]

RewriteCond %{HTTP_USER_AGENT} .*CherryPicker* [OR]

RewriteCond %{HTTP_USER_AGENT} .*CherryPickrElite* [OR]

RewriteCond %{HTTP_USER_AGENT} .*CherryPickerSE* [OR]

RewriteCond %{HTTP_USER_AGENT} .*ChinaClaw* [OR]

RewriteCond %{HTTP_USER_AGENT} .*clipping* [OR]

RewriteCond %{HTTP_USER_AGENT} .*collage* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Collector* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Copier* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*Crescent* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*Download* [OR]

RewriteCond %{HTTP_USER_AGENT} .*eCatch* [OR]

RewriteCond %{HTTP_USER_AGENT} .*EirGrabber* [OR]

RewriteCond %{HTTP_USER_AGENT} .*email* [OR]

RewriteCond %{HTTP_USER_AGENT} .*EmeraldShield* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*FlashGet* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*FlickBot* [OR]

RewriteCond %{HTTP_USER_AGENT} .*FrontPage* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*GetRight* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*GetSmart* [OR]

RewriteCond %{HTTP_USER_AGENT} .*GetWeb* [OR]

RewriteCond %{HTTP_USER_AGENT} .*GetWebPage* [OR]

RewriteCond %{HTTP_USER_AGENT} .*gigabaz* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Go!Zilla* [OR]

RewriteCond %{HTTP_USER_AGENT} .*GornKer* [OR]

RewriteCond %{HTTP_USER_AGENT} .*gotit* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Grabber* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} .*GrabNet* [OR]

RewriteCond %{HTTP_USER_AGENT} .*hloader* [OR]

RewriteCond %{HTTP_USER_AGENT} .*httpdown* [OR]

RewriteCond %{HTTP_USER_AGENT} .*InterGET* [OR]

RewriteCond %{HTTP_USER_AGENT} .*JustView* [OR]

RewriteCond %{HTTP_USER_AGENT} .*kapere* [OR]

RewriteCond %{HTTP_USER_AGENT} .*larbin* [OR]

RewriteCond %{HTTP_USER_AGENT} .*LeechFTP* [OR]

RewriteCond %{HTTP_USER_AGENT} .*LexiBot* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Missigua* [OR]

RewriteCond %{HTTP_USER_AGENT} .*MSIECrawler* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Vampire* [OR]

RewriteCond %{HTTP_USER_AGENT} .*NetAnts* [OR]

RewriteCond %{HTTP_USER_AGENT} .*NetMechanic* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Openfind* [OR]

RewriteCond %{HTTP_USER_AGENT} .*PageGrabber* [OR]

RewriteCond %{HTTP_USER_AGENT} .*pavuk* [OR]

RewriteCond %{HTTP_USER_AGENT} .*pcBrowser* [OR]

RewriteCond %{HTTP_USER_AGENT} .*PersonaPilot* [OR]

RewriteCond %{HTTP_USER_AGENT} .*PingALink* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Python-urllib* [OR]

RewriteCond %{HTTP_USER_AGENT} .*PycURL* [OR]

RewriteCond %{HTTP_USER_AGENT} .*RealDownload* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Reaper* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Recorder* [OR]

RewriteCond %{HTTP_USER_AGENT} .*ReGet* [OR]

RewriteCond %{HTTP_USER_AGENT} .*replacer* [OR]

RewriteCond %{HTTP_USER_AGENT} .*SearchExpress* [OR]

RewriteCond %{HTTP_USER_AGENT} .*SlySearch* [OR]

RewriteCond %{HTTP_USER_AGENT} .*SmartDownload* [OR]

RewriteCond %{HTTP_USER_AGENT} .*snagger* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Snake* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Stripper* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Sucker* [OR]

RewriteCond %{HTTP_USER_AGENT} .*SuperBot* [OR]

RewriteCond %{HTTP_USER_AGENT} .*SuperHTTP* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Surfbot* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Syntryx* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Teleport* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Telesoft* [OR]

RewriteCond %{HTTP_USER_AGENT} .*NetSpider* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebAuto* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebBandit* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebCapture* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Webclipping* [OR]

RewriteCond %{HTTP_USER_AGENT} .*webcollage* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebCopier* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebEMailExtrac* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebFetch* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebIndexer* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebLeacher* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebMiner* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebMirror* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebReaper* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebSauger* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Website* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Webster* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebStripper* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebWhacker* [OR]

RewriteCond %{HTTP_USER_AGENT} .*WebZIP* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Wget* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Whacker* [OR]

RewriteCond %{HTTP_USER_AGENT} .*whizbang* [OR]

RewriteCond %{HTTP_USER_AGENT} .*Xenu*

RewriteRule .* - [F]


################ REDIRECTIONS LABIGCOM ######################

