duanli4146 2013-11-07 13:41
浏览 96
已采纳

为什么prestashop项目从网站迁移到localhost重定向到网站?

I have cloned a whole online website built with prestashop by FTP and hosted it on a XAMPP. I have downloaded the SQL dump and imported it locally with phpMyAdmin. I have changed the conf files to use the local database.

When I go to localhost/myProject it redirects me to the website url. Why is that ? is there another configuration setting to edit? I have already looked in the conf table in database and domain URL was already set to "localhost", even on the online version.

Update : I found a reference to the website in table "ps_shop_url". I changed its values to localhost, now when I go to localhost it tells me "this page has an infinite redirection loop"

  • 写回答

2条回答 默认 最新

  • dongnong7524 2013-11-07 17:01
    关注

    In ps_shop_url table you must set domain=localhost, domain_ssl=localhost & physical_uri=/myProject/

    In ps_configuration set PS_SHOP_DOMAIN_SSL & PS_SHOP_DOMAIN to localhost

    Also go at BackOffice -> Preferences -> SEO & URLs and click [Save] - this will regenerate your .htaccess file and will add the /myProject/ where needed.

    That should be all.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?