|
La Communauté Webmaster 
| Pages: [1] |
 |
|
|
|
Auteur |
Sujet: URL rewriting Prestashop et OVH Pro (Lu 2401 fois) |
|
 |
URL rewriting Prestashop et OVH Pro
« sur: le 24-06-2011 a 10:51:05 » |
|
xavier1977
Membre récent

Hors-Ligne
Messages: 1

|
Bonjour,
Désolé de poster cette demande mais je ne reçois aucune réponse sur le forum de Prestashop.
J'ai installé Prestashop 1.4 sur un hébergement OVH Pro.
Tout s'est bien déroulé. Mais quand j'active L'URL rewriting et que j'ajoute le fichier htaccess habituel (voir ci-dessous), l'URL rewriting fonctionne mais toutes les images produits disparaissent sur tout le site.
Je suppose qu'il y a une erreur dans le fichier htaccess.
Pouvez-vous m'aider ?
Merci
SetEnv REGISTER_GLOBALS 0 SetEnv PHP_VER 5
# URL rewriting module activation RewriteEngine on
# URL rewriting rules RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1/$2/$3.jpg [L,E]
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E] RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [L,E] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E] 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 ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]
# Catch 404 errors ErrorDocument 404 /404.php |
| |
|
|
|
|
|
|
 |
Re:URL rewriting Prestashop et OVH Pro
« Répondre #1 sur: le 24-06-2011 a 13:45:48 » |
|
|
|
|
 |
Re:URL rewriting Prestashop et OVH Pro
« Répondre #2 sur: le 24-06-2011 a 20:29:23 » |
|
|
|
|
| Pages:
[1] |
|
|
|
| |
|
|