Jump to content

passage du ligne au local prestashop (404notfound)


Recommended Posts

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 Found

The requested URL /desineotest/fr/erreur-404 was not found on this server.


Link to comment
Share on other sites

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

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
 
<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

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

  • 1 year later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...