Spi Posted January 1, 2011 Share Posted January 1, 2011 Bonjour, Voici mon problème, j'ai voulu activer la réécriture d'url sur mon site pour améliorer le référencement. J'ai donc activé cette fonction et généré un fichier.htaccess via le générateur du BO. Résultat : site et back office inaccessible!! Quelqu'un à déjà eu ce problème? Merci pour vos réponse Link to comment Share on other sites More sharing options...
DevNet Posted January 1, 2011 Share Posted January 1, 2011 Bonjour,Quels sont les caractéristiques de votre hébergement web ?Quel est le contenu du fichier .htaccess généré ?Bien cordialement Link to comment Share on other sites More sharing options...
Spi Posted January 1, 2011 Author Share Posted January 1, 2011 J'ai mis le fichier en pièce jointe Link to comment Share on other sites More sharing options...
Spi Posted January 1, 2011 Author Share Posted January 1, 2011 # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine 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 Link to comment Share on other sites More sharing options...
Spi Posted January 1, 2011 Author Share Posted January 1, 2011 Pour info mon hébergeur est : OVH Prestashop version : 1.2.5 Link to comment Share on other sites More sharing options...
DevNet Posted January 1, 2011 Share Posted January 1, 2011 Pouvez-vous mettre en pj le fichier .htaccess entier ? Link to comment Share on other sites More sharing options...
Spi Posted January 1, 2011 Author Share Posted January 1, 2011 Je n'ai pas d'info supplémentaire sur les condition d'hébergement. Comment pensez vous que je peux rendre a nouveau la boutique accessible? Link to comment Share on other sites More sharing options...
DevNet Posted January 1, 2011 Share Posted January 1, 2011 Envoyez moi vos accès ftp en privé + url de votre site, je vais regarder ça. Link to comment Share on other sites More sharing options...
Spi Posted January 1, 2011 Author Share Posted January 1, 2011 MP envoyé, merci pour votre aide précieuse ! Link to comment Share on other sites More sharing options...
DevNet Posted January 1, 2011 Share Posted January 1, 2011 Cela ne vient pas de votre htaccess, mais du chmod de vos fichiers certainement.Ils sont tous en chmod 604. Il faudrait au minimum passer les fichiers non modifiables en 644 pour que votre httpd puisse accéder à ce contenu.Je ne connais pas la configuration de votre serveur mais c'est un minimum je pense, car votre user http doit faire partie certainement du groupe des public users web, telle une configuration mutualisée.Essayez dans ce sens la pour voir.Bien cordialement Link to comment Share on other sites More sharing options...
DevNet Posted January 1, 2011 Share Posted January 1, 2011 J'ai aussi activé les messages d'erreurs : Fatal error: Undefined class name 'configuration' in /[...je cache le chemin...]/www/config/config.inc.php on line 136 C'est un problème de permissions. Link to comment Share on other sites More sharing options...
Spi Posted January 1, 2011 Author Share Posted January 1, 2011 Problème résolu ! Cela venait bien des autorisations 604 ! Merci pour votre aide. Sincères salutations Link to comment Share on other sites More sharing options...
DevNet Posted January 1, 2011 Share Posted January 1, 2011 Super et meilleurs vœux !Bonne continuation 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