url - PrestaShop $link -> getProductLink($product) 给出了错误的 URL

标签 url url-rewriting seo prestashop prestashop-1.6

我正在使用 $link -> getProductLink($product) 在自定义 ajax 支持的模块中生成产品链接

它正在生成一个类似 http://example.com/prestashop/2-blouse.html 的 URL

它抛出一个错误,说

[Debug] This page has moved Please use the following URL instead: http://example.com/prestashop/blouses/2-blouse.html

如何避免同样的情况

谢谢

PS:我使用的是 prestashop 1.6

最佳答案

config/defines.inc.php 中将 _PS_MODE_DEV_ 设置为 false

关于url - PrestaShop $link -> getProductLink($product) 给出了错误的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25528902/

相关文章:

URL SEO/id/slug VS./slug-id

php - 尝试使用 Php-MySQL 从数据库检索视频 URL 并将其显示在浏览器上

javascript - 仅在基本 url 上运行的 JS 函数

apache - 如何使用 Apache mod_rewrite 隐藏 .html 扩展名

apache - 如何停止重写规则?

asp-classic - 经典 ASP 中的 SEO 友好 URL?

php - 连接 HTML 和 PHP 以创建图像链接

javascript - url哈希片段格式

iis-7 - 如何在 URL 重写 w/ARR 的出站规则中获取反向代理服务器的 HTTP_HOST

php - 如何创建搜索,对搜索引擎友好(mod_rewrite htaccess)