码迷,mamicode.com
首页 > Web开发 > 详细

安装完magento后,其他电脑无法访问magento,URL自动跳转到http://localhost/magento

时间:2016-12-28 18:39:03      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:sel   1.7   from   后台   默认   pre   strong   方法   默认值   

问题:在电脑A上安装完了magento 1.7.0.2
然后,
在电脑A上用 http://localhost/magento 访问网站,没有问题。
但在电脑B 上用 http://192.168.41.131/magento 访问的时候,就会发现URL自动跳转到 http://localhost/magento 这个链接上,然后访问失败
解决方法:
在电脑A上登录magento后台,进入 System -> Configuration -> web -> Unsecure 
Base URL 这一栏中,将默认值替换成:http://192.168.41.131/magento   (请根据自己的电脑IP来设置,其它选项保持默认),然后点 Save confing 按钮即可。

技术分享

原文地址:http://www.ithao123.cn/content-8207646.html

博主补充:

SELECT * FROM  `core_config_data` WHERE  `path` LIKE  ‘%base%‘

修改域名为本地地址。

安装完magento后,其他电脑无法访问magento,URL自动跳转到http://localhost/magento

标签:sel   1.7   from   后台   默认   pre   strong   方法   默认值   

原文地址:http://www.cnblogs.com/ec04/p/6230002.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!