Magento自动重定向到实时服务器上的localhost [英] Magento is automatically redirecting to localhost on live server

查看:129
本文介绍了Magento自动重定向到实时服务器上的localhost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将网站从magento的本地主机上载到实时服务器上

I have uploaded my website on live server from localhost in magento

,当我在写URL时,例如: http://unbeatablewatches.com ,它将重定向到localhost/unbeatable-watches ..

and when i m writing the url e.g: http://unbeatablewatches.com it is redirecting to localhost/unbeatable-watches..

如何解决此问题..?

请帮助我

推荐答案

当表core_config_data(带有以下path列的记录)中的基本链接URL不变时,就会发生这种情况.

This occurs when the base link urls are not changed in the table core_config_data (records with the following path column).

web/secure/base_url
web/secure/base_link_url
web/unsecure/base_url
web/unsecure/base_link_url

更改缓存后,必须清除缓存. 如果var/cache文件夹不可写并且将缓存写入OS的默认tmp文件夹中,也会发生这种情况.

You must clear the cache after changing them. This also occurs if the var/cache folder is not writable and the cache is written in the OS default tmp folder.

这篇关于Magento自动重定向到实时服务器上的localhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆