[résolu]Rediriger les pages d'un dossier vers un autre dossier

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: #1.9.4.2
#~ Url du site : http://www.zoomjeunes.be
#~ Hébergeur / Soft : ovh mutualisé
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 1.9.4.2
#~ Installed Modules:
#~ CMSMailer: 2.0.1
#~ FileManager: 1.1.0
#~ MenuManager: 1.7.6
#~ ModuleManager: 1.4.2
#~ RateThis: 1.0
#~ nuSOAP: 1.0.2
#~ Printing: 1.1.2
#~ Search: 1.6.10
#~ ThemeManager: 1.1.4
#~ TinyMCE: 2.8.4
#~ CGExtensions: 1.24.1
#~ DewPlayer: 0.2.1
#~ FormBuilder: 0.7
#~ Captcha: 0.4.3
#~ CGSimpleSmarty: 1.4.8
#~ FormBrowser: 0.4
#~ FrontEndUsers: 1.12.13
#~ SiteMapMadeSimple: 1.2.2
#~ SystemInfo: 1.0
#~ Play: 1.0.3
#~ Config Information:
#~ php_memory_limit: 128M
#~ process_whole_template: false
#~ output_compression: false
#~ max_upload_size: 64000000
#~ default_upload_permission: 664
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ image_manipulation_prog: GD
#~ auto_alias_content: true
#~ locale: fr_FR.utf8
#~ default_encoding: utf-8
#~ admin_encoding: utf-8
#~ set_names: true
#~ Php Information:
#~ phpversion: 5.2.17
#~ md5_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_STRICT: 0
#~ memory_limit: 128M
#~ max_execution_time: 120
#~ output_buffering: On
#~ safe_mode: Off (Faux)
#~ file_uploads: On (Vrai)
#~ post_max_size: 64M
#~ upload_max_filesize: 64M
#~ session_save_path: /tmp (1777)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ Server Information:
#~ Server Api: cgi
#~ Server Db Type: MySQL (mysql)
#~ Server Db Version: 5.0.90
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~


Bonjour,

Je souhaiterais rediriger les pages http://www.zoomjeunes.be/candidats/candidats-2005/page vers
http://www.zoomjeunes.be/c/candidats-2005/page.html
Idem pour le dossier candidats/candidats-2006/page

Un redirect permanent ne fonctionne pas pour des pages dynamiques avec ovh, il faut utiliser RewriteRule.

J'ai tenté plusieurs écritures, mais n'ai pas trouvé la bonne.
Exemple : RewriteEngine On
RewriteRule http://www.zoomjeunes.be/candidats/candidats-2005/(.*)$ http://www.zoomjeunes.be/c/candidats-2005/$1.html

Merci d'avance
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: #1.9.4.2
#~ Url du site : http://www.zoomjeunes.be
#~ Hébergeur / Soft : ovh mutualisé
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 1.9.4.2
#~ Installed Modules:
#~ CMSMailer: 2.0.1
#~ FileManager: 1.1.0
#~ MenuManager: 1.7.6
#~ ModuleManager: 1.4.2
#~ RateThis: 1.0
#~ nuSOAP: 1.0.2
#~ Printing: 1.1.2
#~ Search: 1.6.10
#~ ThemeManager: 1.1.4
#~ TinyMCE: 2.8.4
#~ CGExtensions: 1.24.1
#~ DewPlayer: 0.2.1
#~ FormBuilder: 0.7
#~ Captcha: 0.4.3
#~ CGSimpleSmarty: 1.4.8
#~ FormBrowser: 0.4
#~ FrontEndUsers: 1.12.13
#~ SiteMapMadeSimple: 1.2.2
#~ SystemInfo: 1.0
#~ Play: 1.0.3
#~ Config Information:
#~ php_memory_limit: 128M
#~ process_whole_template: false
#~ output_compression: false
#~ max_upload_size: 64000000
#~ default_upload_permission: 664
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ image_manipulation_prog: GD
#~ auto_alias_content: true
#~ locale: fr_FR.utf8
#~ default_encoding: utf-8
#~ admin_encoding: utf-8
#~ set_names: true
#~ Php Information:
#~ phpversion: 5.2.17
#~ md5_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_STRICT: 0
#~ memory_limit: 128M
#~ max_execution_time: 120
#~ output_buffering: On
#~ safe_mode: Off (Faux)
#~ file_uploads: On (Vrai)
#~ post_max_size: 64M
#~ upload_max_filesize: 64M
#~ session_save_path: /tmp (1777)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ Server Information:
#~ Server Api: cgi
#~ Server Db Type: MySQL (mysql)
#~ Server Db Version: 5.0.90
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~


Bonjour,

Je souhaiterais rediriger les pages http://www.zoomjeunes.be/candidats/candidats-2005/page vers
http://www.zoomjeunes.be/c/candidats-2005/page.html
Idem pour le dossier candidats/candidats-2006/page

Un redirect permanent ne fonctionne pas pour des pages dynamiques avec ovh, il faut utiliser RewriteRule.

J'ai tenté plusieurs écritures, mais n'ai pas trouvé la bonne.
Exemple : RewriteEngine On
RewriteRule http://www.zoomjeunes.be/candidats/candidats-2005/(.*)$ http://www.zoomjeunes.be/c/candidats-2005/$1.html

Merci d'avance
#2
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 Big Grin
#2
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 Big Grin
#3
Merci Bess.
Voici ce que j'obtiens en utilisant
Code :
RewriteCond %{REQUEST_URI} ^/candidats/candidats-2005/(.*)$
RewriteRule ^(.*) http://www.zoomjeunes.be/c/candidats-2005/$1.html [L,R=301]
Code :
http://www.zoomjeunes.be/c/candidats-2005/candidats/candidats-2005/entretiens-d-embauche.html

Pas loin, mais erroné Big Grin
#3
Merci Bess.
Voici ce que j'obtiens en utilisant
Code :
RewriteCond %{REQUEST_URI} ^/candidats/candidats-2005/(.*)$
RewriteRule ^(.*) http://www.zoomjeunes.be/c/candidats-2005/$1.html [L,R=301]
Code :
http://www.zoomjeunes.be/c/candidats-2005/candidats/candidats-2005/entretiens-d-embauche.html

Pas loin, mais erroné Big Grin
#4
effectivement : pas loin Smile

Code :
RewriteCond %{REQUEST_URI} ^/candidats/candidats-2005/(.*)$
RewriteRule ^(.*)candidats/candidats-2005/(.*) http://www.zoomjeunes.be/c/candidats-2005/$2.html [L,R=301]

essaie ça (de tête, ne t'attend pas à ce que ca marche, mais au moins tu as un début de soluce)

pour illustrer avec un exemple qui fonctionne: mon module Showroom :

Code :
# START REDIR PAGES #
RewriteCond %{REQUEST_URI} ^/showroom/.+/136/.*$
RewriteRule ^(.*)showroom/(.*)/136/(.*)   http://www.cmsmadesimple.fr/showroom/$2/76/$3?  [L,R=301]
#4
effectivement : pas loin Smile

Code :
RewriteCond %{REQUEST_URI} ^/candidats/candidats-2005/(.*)$
RewriteRule ^(.*)candidats/candidats-2005/(.*) http://www.zoomjeunes.be/c/candidats-2005/$2.html [L,R=301]

essaie ça (de tête, ne t'attend pas à ce que ca marche, mais au moins tu as un début de soluce)

pour illustrer avec un exemple qui fonctionne: mon module Showroom :

Code :
# START REDIR PAGES #
RewriteCond %{REQUEST_URI} ^/showroom/.+/136/.*$
RewriteRule ^(.*)showroom/(.*)/136/(.*)   http://www.cmsmadesimple.fr/showroom/$2/76/$3?  [L,R=301]
#5
Quel mec Smile

Merciiiiiii !
#5
Quel mec Smile

Merciiiiiii !
#6
Big Grin je t'en pries
#6
Big Grin je t'en pries


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)