码迷,mamicode.com
首页 > 其他好文 > 详细

手动修改magento域名

时间:2014-10-29 00:33:44      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   ar   for   sp   strong   on   art   

参考:How to Manually Change Domain in Magento 



So it turns out the problem was that Apache didn‘t have write permissions to the WEBROOT/var directory, so Magento was using its cache from the system /tmp directory. (thanks for the tip, Fiasco Labs!)

In case someone gets here from Google, I‘ll reiterate the steps...

How to Manually Change Domain in Magento

  1. Update your core_config_data table to edit the two records for web/unsecure/base_url and web/secure/base_url

  2. Delete the contents of WEBROOT/var/cache

  3. Update / edit any .htaccess domain redirects you may have added

  4. Restart Apache

  5. Make sure Apache has write permissions to WEBROOT/var

  6. If you created a new DB, ensure that the WEBROOT/app/etc/local.xml is pointing to it.

  7. If you‘re using Chrome, clear your browser cache! (Chrome caches 301s)



手动修改magento域名

标签:style   http   io   ar   for   sp   strong   on   art   

原文地址:http://my.oschina.net/lxrm/blog/338304

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