lamaguian 0 Posted February 23, 2010 Posted February 23, 2010 bonjourdsl si la réponse a été déjà apporté mais je ne l'ai pas vuj'ai installé .htaccess.text suivant sur ovh mutualiséSetEnv PHP_VER 5SetEnv REGISTER_GLOBALS 0# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteBase /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 ^([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]# Catch 404 errorsErrorDocument 404 /404.php les url sont bien réécrites MAIS cela scrappe les images et mets à laplace l'url de l'image, et quand on clique sur le produit il dit ce produit n'existe plus.quelqu'un a une idée voire même une solutionpour info mon site est sous cubecart pour l'instant et toutes les fonctionnalités que je souhaite avoir sur cubecart en options payantes sont dans le presta de base.je suis assez enthousiaste et teste....merci de votre aide Share this post Link to post Share on other sites
lamaguian 0 Posted February 25, 2010 Posted February 25, 2010 RESOLUVoila le bon htaccess pour ovh mutualiséAttention en le générant automatiquement sous la partie admin, cela plante le sitepcq il manque la ligne suivante SetEnv PHP_VER 5.prendre le fichier ci joint et remplacer l'existant# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationSetEnv PHP_VER 5RewriteEngine on# URL rewriting rulesRewriteRule ^([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 errorsErrorDocument 404 /404.php Share this post Link to post Share on other sites
lamaguian 0 Posted February 25, 2010 Posted February 25, 2010 attention fausse manip les 1 et 2 sont à remplacer par des dièses Share this post Link to post Share on other sites
Yoya 229 Posted February 25, 2010 Posted February 25, 2010 Merci pour ta contribution!A bientot, Cdlt,Pierre. Share this post Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now