amz83 Posted April 17, 2016 Share Posted April 17, 2016 Bonjour, je detiens une boutique en ligne. J'aimerais changer son template pour ce faire je vais travailler en local car je n'ai pas envie de prendre le risque de tout faire "péter". Donc pour ce faire j'ai réalisé: une exportation de ma base de donnée j'ai creer une base dans phpmyadmin. je l'ai importé. j'ai ouvert filezilla/ j'ai tous copier et déposé dans wamp/www/desineotest. j'ai modifier mon config/setting.inc.php define('_DB_SERVER_', 'localhost'); define('_DB_NAME_', '_dbdesineotest_'); define('_DB_USER_', 'root'); define('_DB_PASSWD_', ''); define('_DB_PREFIX_', 'ps_'); define('_MYSQL_ENGINE_', 'MyISAM'); define('_PS_CACHING_SYSTEM_', 'MCached'); define('_PS_CACHE_ENABLED_', '0'); define('_MEDIA_SERVER_1_', ''); define('_MEDIA_SERVER_2_', ''); define('_MEDIA_SERVER_3_', ''); define('_COOKIE_KEY_', 'dSn4Dyo0Cd7GRGCNOxN4eupmVvrBH619PF4c1BqfISxQVcI40YsHVSL8'); define('_COOKIE_IV_', 'nLrGMEcM'); define('_PS_CREATION_DATE_', '2012-04-22'); define('_PS_VERSION_', '1.5.3.1'); define('_PS_DIRECTORY_', '/'); j'ai modifier ps_shop_url domain: localhost/desineotest domainssl : localhost/desineotest physical : / j'ai supprimé le cache smarty et compile (sauf index.php) j'ai supprimé htaccess. lorsque je tape http://localhost/desineotest dans ma barre de recherche; NIET j'ai ce message : Not FoundThe requested URL /desineotest/fr/erreur-404 was not found on this server. Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 17, 2016 Share Posted April 17, 2016 Bonjour, et si vous changez cela : domain: localhost domainssl : localhost physical : /desineotest/ Link to comment Share on other sites More sharing options...
amz83 Posted April 17, 2016 Author Share Posted April 17, 2016 MERCI je testerais ca demaîn au boulot ! J'espère que ça va fonctionner Link to comment Share on other sites More sharing options...
amz83 Posted April 18, 2016 Author Share Posted April 18, 2016 malheureusement, comme je le craignais, cela ne marche pas j'ai toujours ce fameux. 404 not found. Pourtant je ne comprend pas j'ai fais tous ce qui était dit sur le sujet "passer mon site online à local". Personne n'a le même problème que moi sur tous l'internet c'est quand même fou. De plus je n'ai aucune information d'ou pourrait provenir le problème ce qui me bloque considérablement. Si quelqu'un a déjà eu ce problème, puis-je avoir son aide? Je suis au bord du gouffre. Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 18, 2016 Share Posted April 18, 2016 Bonjour, Si vous cherchez à afficher une simple image ou un simple fichier html ou texte dans cet hébergement cela vous raconte quoi ? Link to comment Share on other sites More sharing options...
amz83 Posted April 18, 2016 Author Share Posted April 18, 2016 ça a l'air de fonctionner je vous joint un screen Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 18, 2016 Share Posted April 18, 2016 Et le htaccess est bien récupéré aussi et est bien à jour ? Et vous avez tenté de vos connecter au backoffice et pas seulement à l'accueil de votre site ? Link to comment Share on other sites More sharing options...
amz83 Posted April 18, 2016 Author Share Posted April 18, 2016 j'ai supprimé le htaccess car on m'a dit qu'il ne servait à rien. quant au back office j'arrive a y accéder !! Mais lorsque je fais "accéder à la boutique", je retombe sur le 404 not found :/ Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 18, 2016 Share Posted April 18, 2016 Donc dans le BO il vous suffit de désactiver les url simplifiée et cela devrait revenir à la normal. Et le ON m'a dit, évitez de l'écouter la prochaine fois. Link to comment Share on other sites More sharing options...
amz83 Posted April 18, 2016 Author Share Posted April 18, 2016 voici mon htaccess lorsque vous dites BO, que cela veut t'il dire? AddType x-mapp-php6 .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} ^www.desineo.fr$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.desineo.fr$ RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1-$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.desineo.fr$ RewriteRule ^([0-9]+)\-([0-9]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1-$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.desineo.fr$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.desineo.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} ^www.desineo.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} ^www.desineo.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} ^www.desineo.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} ^www.desineo.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} ^www.desineo.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} ^www.desineo.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} ^www.desineo.fr$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.desineo.fr$ RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.desineo.fr$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.desineo.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> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </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 ET oui j'éviterais de croire les sujets anglais un peu bizarre. Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 18, 2016 Share Posted April 18, 2016 BO = backoffice ou espace de gestion de l'administrateur de la boutique. merci mais votre htaccess ne me sert à rien. AddType x-mapp-php6 .php Sauf que cette ligne n'a aucun intérêt en local. Dans tous les cas franchement je laisserais prestashop généré ce htaccess lors de changement de configuration dans SEO&URLs Link to comment Share on other sites More sharing options...
amz83 Posted April 18, 2016 Author Share Posted April 18, 2016 Merci beaucoup ça marche enfin! Je vous remercie de votre temps et de votre aide. Je vais enfin pourvoir travailler ! Link to comment Share on other sites More sharing options...
Regis-L Posted October 4, 2017 Share Posted October 4, 2017 Bonjour, J'esaie de faire tourner ma boutique transférée en local (PS version 1.4) mais je rencontre le même problème : erreur 404 j'ai bien profiter des détails des opérations mentionnés dans vos échanges plus haut ... merci, j'avais oublié 1 trucs ou 2. Mais je ne trouve pas la table "physical" ... porte-t-elle un autre nom dans PS1.4 ? est-elle cachée dans une arborescence ? je sais bien que le fil est un peu vieu, je tente ma chance ;-) 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