Jump to content

Liens Bloc information mène à "Page introuvable"


Recommended Posts

J'ai renommé et modifié mon fichier .htaccess d'ailleur le voici:

SetEnv REGISTER_GLOBALS 0
SetEnv PHP_VER 5

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
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 ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [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-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

Link to comment
Share on other sites

  • 2 years later...

Bonjour,

 

je suis dans le même cas que BOOST.

Cela ne marche plus depuis que j'ai désactivé les langues Eng et Esp.

avant j'avais une URL du style /fr/1-livraison

maintenant j'ai une URL en /content/1-livraison qui ne mène à rien...

 

voici ma boutique: www.mon-blason.fr qui est en PS 1.4.0

 

Avez-vous une idée du moyen de résoudre ce bug?

Link to comment
Share on other sites

J'ai fini par trouver tout seul, c'était une erreur dans le .htacces (pourtant généré par Prestashop):

au lieu de

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?isolang=$1&id_cms=$2 [QSA,L]

il faut mettre:

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L]

et c'est bon.

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