Jump to content

Redirection d'une page = adresse non exacte... ?


Recommended Posts

Bonjour,

Tout d'abord merci pour ceux qui passent du temps à aider et merci à ceux qui prendront le temps de me lire et d'essayer de trouver une solution.


J'essaie de rediriger une page catégorie, mais si la redirection fonctionne, l'adresse de la page n'est pas tout a fait correcte.

l'ancienne adresse:
#http://singuliart.com/5-style-awarholl

La nouvelle:
#http://singuliart.com/5-warhol-personnalise

En fait, j’obtiens ça après redirection:
#http://singuliart.com/5-warhol-personnalise?id_category=5

(le "?id_category=5" est en trop.)




Mon fichier .htaccess

SetEnv PHP_VER 5 

SetEnv REGISTER_GLOBALS 0

RewriteBase / 



# URL rewriting module activation

RewriteEngine on


# Site sans www (a placer avant les autres regles)

RewriteCond %{HTTP_HOST} !^singuliart.com$
RewriteRule ^(.*)   http://singuliart.com/$1  [QSA,L,R=301]

# Ed perso definitif (301)

RedirectPermanent /modules/faq/faqs.php http://singuliart.com/content/29-questions-et-reponses-a-consulter
RedirectPermanent /5-style-awarholl http://singuliart.com/5-warhol-personnalise



# URL rewriting rules

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]

# Catch 404 errors

ErrorDocument 404 /404.php

# MODULE URLRPLUS Products
RewriteRule ^index\.html(.*)$ product.php?id_product=0$1 [L,E]
RewriteRule ^motif-oiseau\.html(.*)$ product.php?id_product=50$1 [L,E]
RewriteRule ^motif-oiseau\.html(.*)$ product.php?id_product=48$1 [L,E]
RewriteRule ^options/retouches/retouche-esthetique\.html(.*)$ product.php?id_product=45$1 [L,E]
RewriteRule ^options/retouches/eliminer-les-petites-inperfections\.html(.*)$ product.php?id_product=44$1 [L,E]
RewriteRule ^options/retouche-assembler-ou-rapprocher-2-personnes\.html(.*)$ product.php?id_product=43$1 [L,E]
RewriteRule ^craie-et-sangine\.html(.*)$ product.php?id_product=41$1 [L,E]
RewriteRule ^pop-color\.html(.*)$ product.php?id_product=40$1 [L,E]
RewriteRule ^pop-art-silhouette\.html(.*)$ product.php?id_product=26$1 [L,E]
RewriteRule ^pop-art-silhouette-4-cases\.html(.*)$ product.php?id_product=25$1 [L,E]
RewriteRule ^pop-deco-taches\.html(.*)$ product.php?id_product=23$1 [L,E]
RewriteRule ^andy-warhol-4-cases\.html(.*)$ product.php?id_product=22$1 [L,E]
RewriteRule ^andy-warhol\.html(.*)$ product.php?id_product=21$1 [L,E]
RewriteRule ^pop-deco-cercles\.html(.*)$ product.php?id_product=20$1 [L,E]
RewriteRule ^pop-art\.html(.*)$ product.php?id_product=19$1 [L,E]
RewriteRule ^pop-art/pop-art-4-cases\.html(.*)$ product.php?id_product=13$1 [L,E]
RewriteRule ^esquisse-au-crayon\.html(.*)$ product.php?id_product=18$1 [L,E]
RewriteRule ^motif-oiseau\.html(.*)$ product.php?id_product=51$1 [L,E]
RewriteRule ^motif-oiseau\.html(.*)$ product.php?id_product=52$1 [L,E]
RewriteRule ^motif-oiseau\.html(.*)$ product.php?id_product=53$1 [L,E]
RewriteRule ^options/tirages-en-plus\.html(.*)$ product.php?id_product=55$1 [L,E]
RewriteRule ^motifs/changer-une-couleur\.html(.*)$ product.php?id_product=56$1 [L,E]
RewriteRule ^autre/cheque-cadeau\.html(.*)$ product.php?id_product=60$1 [L,E]

# MODULE URLRPLUS Categorys
RewriteRule ^/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=0$1 [L,E]
RewriteRule ^index/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=0$1 [L,E]
RewriteRule ^1er-prix/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=12$1 [L,E]
RewriteRule ^esquisse/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=9$1 [L,E]
RewriteRule ^pop-deco/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=10$1 [L,E]
RewriteRule ^style-awarholl/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=5$1 [L,E]
RewriteRule ^warhol-personnalise/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=5$1 [L,E]
RewriteRule ^pop-art/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=8$1 [L,E]
RewriteRule ^autre/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=16$1 [L,E]
RewriteRule ^motifs/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=15$1 [L,E]
RewriteRule ^options/retouches/([a-zA-Z0-9-]|[^/]*)$ category.php?id_category=14$1 [L,E]



Edouard.

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...