【问题标题】:Magento product redirect remove the querystring from an urlMagento 产品重定向从 url 中删除查询字符串
【发布时间】:2018-07-23 17:35:46
【问题描述】:

对于我的 Magento 1.9.1 项目,我想实施会员跟踪。对于会员跟踪,我将在 Magento URL 中添加一个查询字符串。它适用于除产品 URL 之外的所有 URL。每当我点击产品 URL 时,它都会重定向到原始字符串并丢失查询字符串。

 Affiliate URL –> https://www.myshop.com/abc-product.html?aff=3
 Redirect to original URL –> https://www.myshop.com/abc-product.html

我也尝试过this solution,但它对我不起作用。

我也尝试过this,但没有成功。

而且它只发生在产品 URL 上,其他 URL 不会被重定向。

谢谢。

【问题讨论】:

    标签: php .htaccess magento redirect query-string


    【解决方案1】:

    Magento 1 的行为并非如此。很可能您的 .htaccess 文件(或某些自定义模块)存在问题。分享您的 htaccess 内容和已安装模块的列表。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-29
      • 1970-01-01
      • 1970-01-01
      • 2018-08-01
      • 1970-01-01
      相关资源
      最近更新 更多