ced57 Posted January 16, 2011 Share Posted January 16, 2011 Bonjour,Lors de l'activation de l'url rewriting, les images de ma boutique ne s'affichent plus et lorsque que je clique sur un lien, voici le message d'erreur que j'ai : Not FoundThe requested URL /store/le-mans/120-1-18-m-schumacher-mercedes-gp-2010.html was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Comment ce fait-ce ?Pour info, je suis chez OVHMerci par avance Link to comment Share on other sites More sharing options...
juliens Posted January 16, 2011 Share Posted January 16, 2011 Bonjour, as tu activé le .htaccess pour OVH ?http://www.prestashop.com/forums/viewthread/67218/configuration_et_utilisation_de_prestashop/_dot_htaccess_ovh__url_rewriting Link to comment Share on other sites More sharing options...
ced57 Posted January 16, 2011 Author Share Posted January 16, 2011 Oui il est activé mais cela ne change rien. Link to comment Share on other sites More sharing options...
ced57 Posted January 16, 2011 Author Share Posted January 16, 2011 Le fichier .htaccess se trouve à la racine du site et non pas à la racine de la boutique.Ma boutique se trouve dans un dossier.A quel endroit doit se trouver le fichier .htaccess ? Link to comment Share on other sites More sharing options...
juliens Posted January 16, 2011 Share Posted January 16, 2011 Dans le répertoire où se trouve ta boutique. Link to comment Share on other sites More sharing options...
ced57 Posted January 16, 2011 Author Share Posted January 16, 2011 Je l'ai placé là et le problème reste le même.Mes images ne s'affichent pas... Link to comment Share on other sites More sharing options...
ced57 Posted January 16, 2011 Author Share Posted January 16, 2011 C'est bon ça fonctionne.Par contre maintenant, l'url simplifié est la même pour tous les produits du catalogue...Et même quand j'essaye de créer un nouveau produit, le champ "URL simplifiée" indique toujours le même nom que les autres.. Link to comment Share on other sites More sharing options...
juliens Posted January 16, 2011 Share Posted January 16, 2011 Peux tu vérifier que tu à bien les lignes ci-dessous au début de ton fichier htaccess ? SetEnv PHP_VER 5 SetEnv REGISTER_GLOBALS 0 Poste ton .htaccess pour voir Link to comment Share on other sites More sharing options...
ced57 Posted January 16, 2011 Author Share Posted January 16, 2011 En faite, ça ne fonctionne plus.. SetEnv PHP_VER 5 SetEnv REGISTER_GLOBALS 0 # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com – http://www.prestashop.com/forums # URL rewriting module activation RewriteEngine on # 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 Je capte pas! Link to comment Share on other sites More sharing options...
juliens Posted January 17, 2011 Share Posted January 17, 2011 Essaie en ajoutant RewriteBase /store en dessous de RewriteEngine on Link to comment Share on other sites More sharing options...
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