fait attention car mal fait tu pourrais zapper de faire la seconde partie de la redirection pour cmsms :
http://www.zoomjeunes.be/c/candidats-2005/$1.html ->
http://www.zoomjeunes.be/index.php?page=$1
Perso je galère toujours avec les redirections... voici ce que j'ai fait pour Cmsmadesimple.
Code :
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^cmsmadesimple.fr$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/$1 [QSA,L,R=301]
# START REDIR RSS #
RewriteCond %{REQUEST_URI} ^/flux-rss.*$ [OR]
RewriteCond %{REQUEST_URI} ^/feed/news/.*$ [OR]
RewriteCond %{REQUEST_URI} ^/News/rss/.*$ [OR]
RewriteCond %{REQUEST_URI} ^/feed/rss2.*$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/feeds/news.rss? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^feed/atom$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/feeds/news.rss? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^feed/rss2$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/feeds/news.rss? [L,R=301]
RewriteCond %{REQUEST_URI} ^/rssBB_topics.xml$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/forum/extern.php?action=feed&type=rss [L,R=301]
# END REDIR RSS #
# START REDIR BLOG #
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/04/26/L-optimisation-de-la-vitesse-de-chargement-du-site-par-le-fichier-.htaccess$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/13/15/L-optimisation-de-la-vitesse-de-chargement-du-site-par-le-fichier-htaccess? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/04/28/Am%C3%A9lioration-de-l-utilisation-de-Google-Analytics$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/12/15/Comment-mieux-integrer-Google-Analytics-dans-votre-site? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/04/20/Comprendre-et-utiliser-{process_pagedata}$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/11/15/Comprendre-et-utiliser-process_pagedata? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/18/[Traduction]-Boostez-%C3%A0-mort-votre-installation-%282/2%29$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/10/15/Traduction-Boostez-a-mort-votre-installation-2-2? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/04/Boostez-%C3%A0-mort-votre-installation-[Traduction]$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/9/15/Traduction-Boostez-a-mort-votre-installation-1-2? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/03/Les-H%C3%A9bergeurs-et-Cms-Made-Simple$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/7/15/Les-Hebergeurs-et-Cms-Made-Simple? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/01/Cherche-R%C3%A9dacteurs-B%C3%A9n%C3%A9voles$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/2/15/Astuces-et-Conseils? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/29/La-gestion-des-feuilles-de-styles-%28CSS%29-avec-les-variables-Smarty$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/6/15/La-gestion-des-feuilles-de-styles-CSS-avec-les-variables-Smarty? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/03/Installation-de-Postgresql-avec-WAMP$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/5/15/Installation-de-Postgresql-avec-WAMP? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/01/Les-outils-du-webmaster$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/4/15/Les-outils-du-webmaster-Firebug? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/26/Petits-Tags-entre-amis$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/19/15/Petits-Tags-entre-amis? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/10/12/Remplacer-le-texte-par-une-image-pour-vos-StartExpandCollapse$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/18/15/Remplacer-le-texte-par-une-image-pour-vos-StartExpandCollapse? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/10/18/Asruce-%3A-afficher-al%C3%A9atoirement-une-image-dans-votre-site-web$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/17/15/Astuce-afficher-aleatoirement-une-image-dans-votre-site-web? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/10/11/Requ%C3%AAter-facilement-la-bdd-de-cmsmadesimple$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/16/15/Requeter-facilement-la-bdd-de-cmsmadesimple? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/09/16/FrontEndUser-file-Manager-externe$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/15/15/FrontEndUser-file-Manager-externe? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/06/21/Optimiser-sa-note-Yslow-et-PageSpeed$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/3/15/Les-outils-du-webmaster-les-notes-Yslow-et-PageSpeed? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/06/03/Comment-int%C3%A9grer-un-compteur-%C3%A0-vos-boucles$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/14/15/Comment-integrer-un-compteur-a-vos-boucles? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/05/31/Les-r%C3%A9sultats-du-sondage$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/2/15/Astuces-et-Conseils? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/05/20/Billet-d-humeur-%3A-Sondage-pour-la-communaut%C3%A9$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/2/15/Astuces-et-Conseils? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2009/09/25/Ouverture-du-blog$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/2/15/Astuces-et-Conseils? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$
RewriteCond %{QUERY_STRING} ^post/2010/03/23/Installation-%C2%AB-manuelle-%C2%BB-de-PHP-5.3.2-avec-Wampserver$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/8/15/Installation-manuelle-de-PHP-5-3-2-avec-Wampserver? [L,R=301]
RewriteCond %{REQUEST_URI} ^/blog/index.php$ [OR]
RewriteCond %{REQUEST_URI} ^/blog$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/2/15/Astuces-et-Conseils? [L,R=301]
# END REDIR BLOG #
# START REDIR DEMO #
RewriteCond %{REQUEST_URI} ^/demo/.*$
RewriteRule ^(.*) /demo? [L,R=301]
# END REDIR DEMO #
# START REDIR NEWS #
RewriteCond %{REQUEST_URI} ^/news/.*$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/4/15/Annonces? [L,R=301]
RewriteCond %{REQUEST_URI} ^index.php$
RewriteCond %{QUERY_STRING} ^mact=News.*$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/blog/category/4/15/Annonces? [L,R=301]
# END REDIR NEWS #
# START REDIR PAGES #
RewriteCond %{REQUEST_URI} ^/showroom/.+/136/.*$
RewriteRule ^(.*)showroom/(.*)/136/(.*) http://www.cmsmadesimple.fr/showroom/$2/76/$3? [L,R=301]
RewriteCond %{REQUEST_URI} ^/references-cms.*$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/showroom [L,R=301]
RewriteCond %{REQUEST_URI} ^/boutique-cms.*$ [OR]
RewriteCond %{REQUEST_URI} ^/theme-template-kit-graphique-cms.*$ [OR]
RewriteCond %{REQUEST_URI} ^/presentation/.*$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/presentation-cms [L,R=301]
RewriteCond %{REQUEST_URI} ^/statistiques/$ [OR]
RewriteCond %{REQUEST_URI} ^/statistiques$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/communaute-cms/statistiques-cms [L,R=301]
RewriteCond %{REQUEST_URI} ^/forum/contact.php$ [OR]
RewriteCond %{REQUEST_URI} ^/contact.php$
RewriteRule ^(.*) http://www.cmsmadesimple.fr/contact [L,R=301]
# END REDIR PAGES #
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
RewriteCond %{HTTP_HOST} ^cmsms.fr$ [OR]
RewriteCond %{HTTP_HOST} ^www.cmsms.fr$
RewriteRule ^/?$ "http\:\/\/www\.cmsmadesimple\.fr" [R=301,L]
Bien évidement il va te falloir t'y plonger mais j'espère qu'avec la flopée d'exemple tu t'en sortiras plus vite que je n'ai mis de temps à le rédiger durant la migration vers la V2 de notre site