J'ai vérifié les paramètres SEO et tout semble OK. J'ai vérifié le fichier .htaccess et ça semble être bon. Cependant, le .htaccess que j'ai vérifié est celui qui est installé à la racine du site web. Est-ce qu'il devrait y avoir un autre fichier .htaccess ailleurs dans un autre dossier?
Le message que j'ai actuellement dans la section SEO est :
La réécriture d'URL (mod_rewrite) n'est pas détecté active sur votre serveur. Si vous voulez utiliser les URL simplifiées, veuillez activer ce module Apache.
J'ai vérifié avec mon hébergeur afin de m'assurer que le module mod_rewrite du serveur apache est bel et bien activé. J'ai eu comme première réponse que ce module est activé par défaut.
Voici ce que contient mon fichier .htaccess alors que la fonction URL simplifiée est désactivée :
# ~~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
RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L]
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /store/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
Voici ce que contient mon fichier .htaccess alors que la fonction URL simplifiée est activée :
# ~~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
RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L]
# Images
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ img/p/$1-$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9]+)\-([0-9]+)(-[0-9]+)?/.+\.jpg$ img/p/$1-$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ 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} ^minivtt.ca$
RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-\.*]*)(-[0-9]+)?/.+\.jpg$ img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ img/c/$1$2.jpg [L]
# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^minivtt.ca$
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /store/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
J'ai redemandé une confirmation de mon hébergeur. Cependant, y a-t-il quelque chose qui m'échappe? Un paramètre dans Prestashop que je ne vois pas? Je n'avais pas de problème avant de faire la mise à jour 1.5.0.17!