freyja12 Posted January 10, 2014 Share Posted January 10, 2014 Bonjour, Je me suis lancée dans prestashop il y a peux de temps et je rencontre un problème de boucle de redirection lorsque j'arrive sur la page de commande. Afin de paramétrer mon site et modifier le template, j'ai d'abord installé mon site chez celeonet sur un hébergement que j'ai. Sur cet hébergement tout va bien et comme il était terminé, j'ai décidé de le passer en production sur un hébergement mutualisé OVH. Et c'est là que le soucis a débuté. J'ai modifié le .htaccess pour OVH, mais ça n'a rien a changé. Le support OVH me dit que mon fichier est mal paramétré mais ne me donne aucune indication ...... Je ne comprend pas trop étant donné que tout fonctionne bien chez celeonet .... j'ai donc effacé le site et installé le module prestashop OVH. Des que je le passe en réécriture, je rencontre de nouveau le même problème. Quelqu'un aurait il une idée ? Je m'arrache les cheveux depuis 3 Jours...... Voilà mon .htaccess SetEnv PHP_VER 5 SetEnv REGISTER_GLOBALS 0 RewriteBase / <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L] </IfModule> ErrorDocument 404 /404.php DirectoryIndex index.php # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^valleedesplaisirs.fr$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
henri59fr Posted January 10, 2014 Share Posted January 10, 2014 y a til cette ligne SetEnv PHP_VER 5_3 dans .htAccess Link to comment Share on other sites More sharing options...
henri59fr Posted January 10, 2014 Share Posted January 10, 2014 je complete. j'vais mal lu ton post . il faut connaitre ta version de php . tu peux aller sur OVH : la doc est bien faite :http://guides.ovh.com/Php5ChezOvh Link to comment Share on other sites More sharing options...
freyja12 Posted January 10, 2014 Author Share Posted January 10, 2014 je complete. j'vais mal lu ton post . il faut connaitre ta version de php . tu peux aller sur OVH : la doc est bien faite :http://guides.ovh.com/Php5ChezOvh Malheureusement les pages de guides ne fonctionnent pas . Comment puis connaitre ma version de php ?, je suis un peu perdue dans le pannel admin d'ovh Link to comment Share on other sites More sharing options...
Zythom Posted January 10, 2014 Share Posted January 10, 2014 (edited) Bonjour freyja je ne suis pas dev, mais j'ai eu un souci de boucle suite a réécriture url, et la solution a été de désactiver apache multiview. D'ailleurs, cette solution revient très souvent dans les posts qui parlent de problèmes avec les réécritures url. As-tu essayé ? Edited January 10, 2014 by Zythom (see edit history) 1 Link to comment Share on other sites More sharing options...
henri59fr Posted January 10, 2014 Share Posted January 10, 2014 peux tu donner l'url de ton site . mettre SetEnv PHP_VER 5_4 dans htAccess Link to comment Share on other sites More sharing options...
freyja12 Posted January 11, 2014 Author Share Posted January 11, 2014 Bonjour freyja je ne suis pas dev, mais j'ai eu un souci de boucle suite a réécriture url, et la solution a été de désactiver apache multiview. D'ailleurs, cette solution revient très souvent dans les posts qui parlent de problèmes avec les réécritures url. As-tu essayé ? Ca marche !!, merci beaucoup ...3 jours que je cherchais .... merci encore ! 1 Link to comment Share on other sites More sharing options...
freyja12 Posted January 11, 2014 Author Share Posted January 11, 2014 J'ai parlé trop vite, maintenant, je n'ai plus de problème de boucle de redirection, mais le panier se vide ......... peux tu donner l'url de ton site . mettre SetEnv PHP_VER 5_4 dans htAccess J'ai essayé, ça ne change rien. L'adresse : http://valleedesplaisirs.fr Link to comment Share on other sites More sharing options...
Zythom Posted January 11, 2014 Share Posted January 11, 2014 J'ai parlé trop vite, maintenant, je n'ai plus de problème de boucle de redirection, mais le panier se vide ......... J'ai essayé, ça ne change rien. L'adresse : http://valleedesplaisirs.fr Mince, moi qui pensait avoir pu aider quequ'un... Désolé freyja Link to comment Share on other sites More sharing options...
freyja12 Posted January 11, 2014 Author Share Posted January 11, 2014 ne sois pas désolé, tu m'a déja donné un bonne piste, maintenant je recherche au niveau de la geolocalisation et/ou de l'url canonique ..... que du plaisir, je n'ai jamais autant galéré .... Link to comment Share on other sites More sharing options...
freyja12 Posted January 12, 2014 Author Share Posted January 12, 2014 Après 24h de recherche, j'ai résolu le porblème, ça venait de mon thème graphique ..... il est supprimé, les paniers ne se vident plus, donc Zythom ton aide m'a été précieuse, j'avais 2 bugs, tu m'en a résolu 1 ! Link to comment Share on other sites More sharing options...
Zythom Posted January 13, 2014 Share Posted January 13, 2014 Wouhou !!! J'ai enfin pu aider quelqu'un !!! 1 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