dexenium | Je fais suite à un post où l'on m'a conseillé une modif pour le htaccess (d'un site oscommerce) : changer
Code :
- Options +FollowSymLinks
- RewriteEngine On
- RewriteBase /
- RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
|
Pour
Code :
- Options +FollowSymLinks
- RewriteEngine On
- RewriteBase /
- RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2[QSA,L]
- RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2[QSA,L]
- RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2[QSA,L]
- RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2[QSA,L]
- RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2[QSA,L]
- RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2[QSA,L]
- RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2[QSA,L]
- RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2[QSA,L]
- RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2[QSA,L]
|
Il s'avère cependant que cette modif bloque l'ajout d'un article dans le panier (avec la première version du htaccess ça fonctionne normalement).
La modif fait apparaitre dans le navigateur un url assez bizarre du style
-www.monsite/macatégorie-c-24%5BQSA%2CL%5D.html?products_id=31&action=buy_now&sort=2a
Le passage qui ne me parait pas normal est souligné en gras.
Pour info j'utilise la contrib seo, peut-être y a t il une incompatibilité c'est très dommage car cette modif me semblait être bien propre et devait accélérer le proces de ma boutique...
Qu'en pensez vous ?
---------------
Là, ça devrait marcher...
|