tchaw16 Posted September 2, 2010 Share Posted September 2, 2010 salut jai une probleme concernant la configuration des url rewriting de prestashopjai modifié mon fichier htaccess et voila le son contenu # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums # Catch 404 errors ErrorDocument 404 /404.php # URL Rewriting activation 1&1;RewriteEngine on RewriteBase / # 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] # PHP5 Activation php5 1&1;AddType x-mapp-php5 .php AddType x-mapp-php5 .php .php3 .php4 .htm .html et aprés lorsque je vais au backoffice et je vais activé l'url simplifié , il m'affiche que "mode arrondi est invalid" et les urls simplifiés dans la barre d'adresse ne fonctionnent pas.quest ce que je dois faire pour résoudre ce probleme. je travaille sur prestashop1.2.5merci d'avance. Link to comment Share on other sites More sharing options...
breton Posted September 3, 2010 Share Posted September 3, 2010 Bonjour,chez quel hebergeur etes vous ? Link to comment Share on other sites More sharing options...
tchaw16 Posted September 3, 2010 Author Share Posted September 3, 2010 merci pour votre réponse .. je suis hebergé chez 1&1; Link to comment Share on other sites More sharing options...
tchaw16 Posted September 3, 2010 Author Share Posted September 3, 2010 jai besoin de vos aides ?????????? Link to comment Share on other sites More sharing options...
gibidi Posted September 3, 2010 Share Posted September 3, 2010 je pense que tu devrais faire un retour chariot pour mettre ta ligne RewrintingEngine on comme cela# URL Rewriting activation 1&1;RewriteEngine onRewriteBase / ( je ne sais pas si c'est indispensable )déjà cela sera mieux et mettre # Catch 404 errorsErrorDocument 404 /404.phpa la fin de ton htaccesssinon essai + tes activation 1&1;moi le mien... ovh, mais possible autrementSetEnv REGISTER_GLOBALS 0SetEnv PHP_VER 5SetEnv ZEND_OPTIMIZER 1SetEnv IONCUBE 1SetEnv MAGIC_QUOTES 0# 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]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.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]RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.png$ /img/p/$1-$2$3.png [L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.png$ /img/p/$1-$2.png [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.png$ /img/c/$1$2.png [L,E] # Catch 404 errorsErrorDocument 404 /404.php voila, la seul chose que j'ai et que je ne comprends pas c'est le magic quote, j'avais demandé une explication mais pas de réponse du forum.J'espère que cela va t'aider Link to comment Share on other sites More sharing options...
tchaw16 Posted September 3, 2010 Author Share Posted September 3, 2010 merci pour votre reponse .jai fait comme vous avez dis , mais il m'affiche erreur 500 interval server error? Link to comment Share on other sites More sharing options...
gibidi Posted September 3, 2010 Share Posted September 3, 2010 met alors comme celaSetEnv REGISTER_GLOBALS 0SetEnv PHP_VER 5SetEnv ZEND_OPTIMIZER 1# URL rewriting module activationRewriteEngine onRewriteBase / # 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]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.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]RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.png$ /img/p/$1-$2$3.png [L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.png$ /img/p/$1-$2.png [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.png$ /img/c/$1$2.png [L,E] # Catch 404 errorsErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
gibidi Posted September 3, 2010 Share Posted September 3, 2010 Attentionle 1. étant en fait # a mettre en début de ligne..... Link to comment Share on other sites More sharing options...
tchaw16 Posted September 3, 2010 Author Share Posted September 3, 2010 aussi il m'affiche la page blanche !!! Link to comment Share on other sites More sharing options...
gibidi Posted September 3, 2010 Share Posted September 3, 2010 enlève cette ligne pour voirRewriteBase /avec et sans et rajoute ta ligne# PHP5 Activation php5 1&1;AddType x-mapp-php5 .phpAddType x-mapp-php5 .php .php3 .php4 .htm .html Link to comment Share on other sites More sharing options...
tchaw16 Posted September 3, 2010 Author Share Posted September 3, 2010 comme d'habitude , le site en ligne mais les url ne fonctionnent pas . mais la question qui se pose : pourqoui lorsque je viens d'activer les url dans backoffice /preferences il m'affiche que le mode arrondi est invalide....sachant que je travaille sur prestashop1.2.5..merci pour votre aide Link to comment Share on other sites More sharing options...
gibidi Posted September 3, 2010 Share Posted September 3, 2010 là je sèche .... désolé.... 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