基础URL,各个环节之间缺少斜杠 [英] Missing slash between base url and all links

查看:68
本文介绍了基础URL,各个环节之间缺少斜杠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的Magento安装一个很讨厌的问题.我有下地址安装的magento(1.4.x的).我已经将其克隆到/beta/目录以在测试环境上进行升级,并且还克隆了数据库,但是我无法解决一个简单的问题.

我的测试安装上的每个链接在base url和URL的其余"之间都缺少一个斜杠,因此,例如,如果magento尝试包含js文件,则此文件的URL呈现如下:www.domain.com/betajs/filetoinclude.js
代替
www.domain.com/beta/js/filetoinclude.js.

我已经在数据库中编辑了我的测试环境的URL,清除了缓存,并完成了其他人在公告板上建议的所有其他操作,但我仍然缺少此斜杠.

此问题descibed宽一点这里: http://www.magentocommerce.com/boards /viewthread/234373

您知道如何使它正常工作吗?预先感谢.

解决方案

最近我遇到了此类问题.删除缓存文件夹后,请解决此问题.您可以尝试从cpanel或ftp中删除,也可以尝试使用以下命令来删除缓存.

清除缓存和Temporaly文件:

rm -rf downloader/pearlib/cache/*
rm -rf downloader/pearlib/download/*
rm -rf var/cache/*
rm -rf var/session/*
rm -rf var/report/*
rm -rf var/tmp/*

此外,如果您的目录随着时间​​而改变,则可能需要清除所有图像缓存文件.

rm -rf media/catalog/product/cache/*
rm -rf media/tmp/*

I have a really irritating problem with my magento installation. I have a magento(1.4.x) installed under www.domain.com address. I've cloned it to /beta/ directory to make an upgrade on test environment and also cloned database but i'm not able to resolve one simple-looking problem.

Every link on my test installation is missing a slash between base url and 'the rest' of URL so, for example, if magento tries to include a js file, URL to this file is rendered like this: www.domain.com/betajs/filetoinclude.js
instead of
www.domain.com/beta/js/filetoinclude.js.

I have edited URLs of my test environment in database, cleared cache and done all the other things poeople were suggesting on bulletin boards but i'm still missing this slash.

This problem is descibed a bit wider here: http://www.magentocommerce.com/boards/viewthread/234373

Have you any idea what can i do to make it working ? Thanks in advance.

解决方案

Recently i faced such problem.After deleting cache folder solve the issue.You can try either delete from cpanel or ftp or use below commands to remove cache.

Clear Cache and Temporaly files:

rm -rf downloader/pearlib/cache/*
rm -rf downloader/pearlib/download/*
rm -rf var/cache/*
rm -rf var/session/*
rm -rf var/report/*
rm -rf var/tmp/*

Additionally, if your catalog has changed over time, you may want to clean all image cache files.

rm -rf media/catalog/product/cache/*
rm -rf media/tmp/*

这篇关于基础URL,各个环节之间缺少斜杠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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