3 URLs pour une même page

WRInaute discret
Bonjour,

j'ai mis en place de l'URL rewriting sur mon site il y a quelques temps.
Les anciennes URLs étaient du genre categorie.php?cat=Cinema (ré-écrit en avatars-cinema.html) ou sous_categorie.php?cat=avatars/Divers&sous_cat=Informatique (ré-écrit en avatars-divers/informatique.html).
J'ai mis en place des redirections 301 de l'ancienne forme vers la nouvelle pour chaque page ré-écrite sans changer le code PHP

Google est repassé me voir et désormais, dans les outils pour webmasters, je constate qu'il a indexé des URLs de type categorie.php?cat=cinema ou sous_categorie.php?cat=avatars/divers&sous_cat=informatique (en gros, mes anciennes URLs mais toutes en minuscules)

comment puis-je indiquer que categorie.php?cat=Cinema et categorie.php?cat=cinema pointent vers avatars-cinema.html (qui la forme ré-écrite de categorie.php?cat=Cinema) sans rentrer dans une boucle de redirection infinie ?

merci d'avance

voici mon htaccess :
Code:
SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
SetEnv SESSION_USE_TRANS_SID 0

AuthType none
Satisfy any
Options +FollowSymlinks
RewriteEngine on

# redirection d'anciennes URLs indexées
RewriteRule ^cv.php$ / [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=Cinema$
RewriteRule ^categorie\.php$ /avatars-cinema.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Charlie_et_la_Chocolaterie$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/charlie-chocolaterie.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Cine_Divers$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/divers.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Harry_Potter$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/harry-potter.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Le_Monde_de_Narnia$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/le-monde-de-narnia.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Le_Seigneur_des_Anneaux$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/le-seigneur-des-anneaux.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Matrix$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/matrix.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Pirates_des_Caraibes$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/pirates-des-caraibes.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Spiderman$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/spiderman.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=Star_Wars$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/star-wars.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Cinema&sous_cat=X-Men$
RewriteRule ^sous_categorie\.php$ /avatars-cinema/x-men.html? [L,R=301]


RewriteCond %{QUERY_STRING} ^cat=Divers$
RewriteRule ^categorie\.php$ /avatars-divers.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Divers&sous_cat=Dragons$
RewriteRule ^sous_categorie\.php$ /avatars-divers/dragons.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Divers&sous_cat=Informatique$
RewriteRule ^sous_categorie\.php$ /avatars-divers/informatique.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Divers&sous_cat=Personnages_3D$
RewriteRule ^sous_categorie\.php$ /avatars-divers/personnages-3d.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Divers&sous_cat=Varies$
RewriteRule ^sous_categorie\.php$ /avatars-divers/varies.html? [L,R=301]


RewriteCond %{QUERY_STRING} ^cat=Jeux_videos$
RewriteRule ^categorie\.php$ /avatars-jeux-videos.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Jeux_videos&sous_cat=Castlevania$
RewriteRule ^sous_categorie\.php$ /avatars-jeux-videos/castlevania.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Jeux_videos&sous_cat=Devil_May_Cry$
RewriteRule ^sous_categorie\.php$ /avatars-jeux-videos/devil-may-cry.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Jeux_videos&sous_cat=GameSeries$
RewriteRule ^sous_categorie\.php$ /avatars-jeux-videos/gameseries.html? [L,R=301]


RewriteCond %{QUERY_STRING} ^cat=Manga$
RewriteRule ^categorie\.php$ /avatars-manga.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Manga&sous_cat=Manga_Divers$
RewriteRule ^sous_categorie\.php$ /avatars-manga/divers.html? [L,R=301]

RewriteCond %{QUERY_STRING} ^cat=avatars/Manga&sous_cat=Fushigi_Yugi$
RewriteRule ^sous_categorie\.php$ /avatars-manga/fushigi-yugi.html? [L,R=301]

# redirection de domain.tld vers www.domain.tld
RewriteCond %{HTTP_HOST} !^www\.elianora-la-blanche\.net [NC]
RewriteRule (.*) http://www.elianora-la-blanche.net/$1 [QSA,R=301,L]
# page d'erreur 404 en redirection 301
ErrorDocument 404 /404.php

# redirection de index.php (et autres extensions) vers /
RewriteCond %{REQUEST_URI} ^/index.(htm|html|php)$
RewriteCond %{THE_REQUEST} /index.(htm|html|php)
RewriteRule ^(.*)index.(htm|html|php)$ /$1 [R=301,L]

# réécriture d'URL
RewriteRule ^avatars-cinema.html$   /categorie.php?cat=cinema [L]
RewriteRule ^avatars-cinema/charlie-chocolaterie.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=charlie_et_la_chocolaterie [L]
RewriteRule ^avatars-cinema/divers.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=cine_divers [L]
RewriteRule ^avatars-cinema/harry-potter.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=harry_potter [L]
RewriteRule ^avatars-cinema/le-monde-de-narnia.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=le_monde_de_narnia [L]
RewriteRule ^avatars-cinema/le-seigneur-des-anneaux.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=le_seigneur_des_anneaux [L]
RewriteRule ^avatars-cinema/matrix.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=matrix [L]
RewriteRule ^avatars-cinema/pirates-des-caraibes.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=pirates_des_caraibes [L]
RewriteRule ^avatars-cinema/spiderman.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=spiderman [L]
RewriteRule ^avatars-cinema/star-wars.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=star_wars [L]
RewriteRule ^avatars-cinema/x-men.html$   /sous_categorie.php?cat=avatars/cinema&sous_cat=x-men [L]

RewriteRule ^avatars-divers.html$   /categorie.php?cat=divers [L]
RewriteRule ^avatars-divers/dragons.html$   /sous_categorie.php?cat=avatars/divers&sous_cat=dragons [L]
RewriteRule ^avatars-divers/informatique.html$   /sous_categorie.php?cat=avatars/divers&sous_cat=informatique [L]
RewriteRule ^avatars-divers/personnages-3d.html$   /sous_categorie.php?cat=avatars/divers&sous_cat=personnages_3d [L]
RewriteRule ^avatars-divers/varies.html$   /sous_categorie.php?cat=avatars/divers&sous_cat=varies [L]

RewriteRule ^avatars-jeux-videos.html$   /categorie.php?cat=jeux_videos [L]
RewriteRule ^avatars-jeux-videos/castlevania.html$   /sous_categorie.php?cat=avatars/jeux_videos&sous_cat=castlevania [L]
RewriteRule ^avatars-jeux-videos/devil-may-cry.html$   /sous_categorie.php?cat=avatars/jeux_videos&sous_cat=devil_may_cry [L]
RewriteRule ^avatars-jeux-videos/gameseries.html$   /sous_categorie.php?cat=avatars/jeux_videos&sous_cat=gameseries [L]

RewriteRule ^avatars-manga.html$   /categorie.php?cat=manga [L]
RewriteRule ^avatars-manga/divers.html$   /sous_categorie.php?cat=avatars/manga&sous_cat=manga_divers [L]
RewriteRule ^avatars-manga/fushigi-yugi.html$   /sous_categorie.php?cat=avatars/manga&sous_cat=fushigi_yugi [L]

NB : je suis chez OVH
 
Discussions similaires
Haut