Michel presta Posted May 22, 2013 Share Posted May 22, 2013 (edited) Bonjour à tous. j'ai un problème avec mon htaccess. En parcourant le forum j'ai pris quelques conseils pour des redirections url. J'ai donc ouvert mon fichier htaccess, et quand j'ai vu l'usine a gaz... je l'ai refermé sans y toucher je n'y ai fait aucunes modifications Depuis, je n'ai accès a la boutique que si je désactive les url simplifiées dans préférences seo et url. J'ai sauvegardé mon htaccess puis je l'ai suprimé pour en régénérer un nouveau. Un nouveau htaccess est apparu mais ça ne marche pas non plus (même après vidage du cache) je joint mon htaccess en txt au cas ou quelqu'un aurait la bonté de l'examiner et peut être me donner la solution. Merci d'avance. PS. quand j'active "URL simplifiée" j'ai une erreur 404 "la page n'existe pas..." Je précise que je suis en multi boutiques et qu je n'ai le problème qu'avec une boutique. La boutique qui fonctionne est esportsnatura.com et celle qui ne fonctionne pas est http//originalswat.fr htaccess.txt Edited May 23, 2013 by Michel Faure (see edit history) Link to comment Share on other sites More sharing options...
Superbegood31 Posted May 22, 2013 Share Posted May 22, 2013 A première vue, il s'agit de l'htacess de l'autre site (http://pieces-detachees-chaudieres.fr/) Link to comment Share on other sites More sharing options...
Michel presta Posted May 22, 2013 Author Share Posted May 22, 2013 Mai je n'ai que celui la!!! Voici le contenu du htaccess qui a été régénéré et qui ne fonctionne pas non plus: RewriteCond %{HTTP_HOST} ^originalswat\.fr$ [OR] RewriteCond %{HTTP_HOST} ^www\.originalswat\.fr$ RewriteRule ^/?$ "\%\{ENV\:REWRITEBASE\}index\.php\/" [R=301,L] # ~~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} ^esportsnatura.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^esportsnatura.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^esportsnatura.com$ 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} ^esportsnatura.com$ 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} ^esportsnatura.com$ 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} ^esportsnatura.com$ 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} ^esportsnatura.com$ 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} ^esportsnatura.com$ 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} ^esportsnatura.com$ 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} ^esportsnatura.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^esportsnatura.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^esportsnatura.com$ 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} ^esportsnatura.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^esportsnatura.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] RewriteCond %{HTTP_HOST} ^originalswat.fr$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^originalswat.fr$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^originalswat.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} ^originalswat.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} ^originalswat.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} ^originalswat.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} ^originalswat.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} ^originalswat.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} ^originalswat.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} ^originalswat.fr$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^originalswat.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} ^originalswat.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} ^originalswat.fr$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^originalswat.fr$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule> </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 RewriteCond %{HTTP_HOST} ^originalswat\.fr$ [OR] RewriteCond %{HTTP_HOST} ^www\.originalswat\.fr$ RewriteRule ^/?$ "\%\{ENV\:REWRITEBASE\}index\.php\/" [R=301,L] Si ça peut aider?, Link to comment Share on other sites More sharing options...
Michel presta Posted May 22, 2013 Author Share Posted May 22, 2013 svp j'ai besoin d'aide. please help Link to comment Share on other sites More sharing options...
2FR3 Posted May 22, 2013 Share Posted May 22, 2013 Quel est le chmod de ce fichié STP ? Link to comment Share on other sites More sharing options...
Michel presta Posted May 22, 2013 Author Share Posted May 22, 2013 (edited) 644 C'est bon? Edited May 22, 2013 by Michel Faure (see edit history) Link to comment Share on other sites More sharing options...
2FR3 Posted May 22, 2013 Share Posted May 22, 2013 Ca depend, essais 777 et regenere le. Link to comment Share on other sites More sharing options...
Michel presta Posted May 22, 2013 Author Share Posted May 22, 2013 Comment je le régénère? Link to comment Share on other sites More sharing options...
2FR3 Posted May 22, 2013 Share Posted May 22, 2013 heu.. Pref/seo & url, tu desactives et tu reactives la reecriture (en prenant soin d'avoir sélectionne toute les boutiques ^^ Link to comment Share on other sites More sharing options...
Michel presta Posted May 22, 2013 Author Share Posted May 22, 2013 (edited) toujours la même erreur: erreur 404 http://originalswat....SE%7dindex.php/ voici la direction qui s’affiche dans la barre de navigation. là le lien peut marcher car j'ai désactivé URL simplifiée Edited May 22, 2013 by Michel Faure (see edit history) Link to comment Share on other sites More sharing options...
2FR3 Posted May 22, 2013 Share Posted May 22, 2013 le fichier se regenere de la meme facon ? (par rapport a celui que tu as posté) Link to comment Share on other sites More sharing options...
Michel presta Posted May 22, 2013 Author Share Posted May 22, 2013 J'ai fait tout ça et c'est toujours pareil. Demain je le supprime et je vois si ça marche. Des fois, la nuit fait des miracles. Je commence a désespérer. Link to comment Share on other sites More sharing options...
Michel presta Posted May 23, 2013 Author Share Posted May 23, 2013 j'ai suivi les instructions de 2FR3 J'ai supprimé le fichier .htaccess Je me suis mis sur "Toutes les boutiques" puis j'ai désactivé "URL simplifiée" J'ai réactivé "URL simplifiée" j'ai basculé sur la boutique concernée et j'y ai activé "URL simplifiée" Et voilà le fichier .htaccess a été régénéré et tout est revenu dans l'ordre. 1 Link to comment Share on other sites More sharing options...
Superbegood31 Posted May 23, 2013 Share Posted May 23, 2013 Content de savoir que vous avez réglé votre problème Link to comment Share on other sites More sharing options...
Michel presta Posted May 23, 2013 Author Share Posted May 23, 2013 Merci Switchboard Cependant je vais ouvrir un autre sujet car J'ai deux boutiques et la seconde originalswat.fr n'est accessible que sans les www. dès que l'on met www. devant le nom de domaine, on est redirigé vers la première boutique esportsnatura.com., Si personne n'a la soluce ici j'ouvre un nouveau sujet. Merci Link to comment Share on other sites More sharing options...
2FR3 Posted May 23, 2013 Share Posted May 23, 2013 Tu a bien mis les adresse et SSL avec les www dans la configuration URL ? Link to comment Share on other sites More sharing options...
Michel presta Posted May 23, 2013 Author Share Posted May 23, 2013 Si tu parles dans "multiboutique" "URL de la boutique" Non j'ai juste mis originalswat.fr Si j'écris www. devant ça va marcher? ça me fait peur (le site est en production) Link to comment Share on other sites More sharing options...
Michel presta Posted May 23, 2013 Author Share Posted May 23, 2013 Ca marche merci beaucoup 2FR3 pour ton aide. A charge de revanche. Link to comment Share on other sites More sharing options...
2FR3 Posted May 23, 2013 Share Posted May 23, 2013 Oui, c'est bien l'url de la boutique, ca devrait fonctionner si tu met le www, en cas de Pb avec le htacces, recommence la manoeuvre, mais en changeant l'url, normalement il se regenere automatiquement. On s'est croisé Link to comment Share on other sites More sharing options...
Michel presta Posted May 23, 2013 Author Share Posted May 23, 2013 Link to comment Share on other sites More sharing options...
Rdev Posted October 22, 2013 Share Posted October 22, 2013 Ca marche merci beaucoup 2FR3 pour ton aide. A charge de revanche. Bonjour Michel J'ai le même, mais je n'ai pas compris comment vous avez résolu votre problème vous pouvez m'aider Link to comment Share on other sites More sharing options...
jlefe Posted June 8, 2016 Share Posted June 8, 2016 Merciiiii..... 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