问题
I'm generating my product links in custom ajax powered module with $link -> getProductLink($product)
it's generating a URL like http://example.com/prestashop/2-blouse.html
which is throwing an error saying
[Debug] This page has moved Please use the following URL instead: http://example.com/prestashop/blouses/2-blouse.html
How do I avoid the same
Thanks
P.S: I'm using prestashop 1.6
回答1:
Set _PS_MODE_DEV_
to false
in config/defines.inc.php
.
回答2:
In Preferences > SEO & URLs
- set disable friendly URLs and Save
- set enable friendly URLs and Save
The .htaccess file will be refreshed and now it will not show you that message.
来源:https://stackoverflow.com/questions/25528902/prestashop-link-getproductlinkproduct-gives-incorrect-url