dongxianshuai8927 2013-04-06 08:49
浏览 11

当我启用“在前端使用安全URL”时,Magento会给出奇怪的URL

When I enable 'Use Secure URLs in Frontend' it messes up the urls of secured pages. For example, this is the url I get for the checkout page

http://www.domain.com/https://www.domain.com/checkout/onepage/

It seems as though it's adding an extra 'http://www.domain.com/' before the secure domain. Does anyone know why this is happening?

  • 写回答

1条回答 默认 最新

  • douchixu3686 2013-04-07 21:08
    关注

    I ran into the exact same issue a few weeks ago. I never got to the bottom of why it occurred but the quick fix is:

    Within a MySQL client run the following SQL:

    select * from core_config_data where path = 'web/secure/base_url';
    

    This will return a nice string of data. Then run:

    update core_config_data set value = "https://yourdomain/" where config_id = ? 
    

    Where ? is the config_id of the ID from the SQL in the select statement. You may need to clear the cache or delete /var from the magento root directory. Yet this should get you back operational. If not let me know and I can help more.

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大