果园CMS-配置基本URL [英] Orchard CMS- Configure Base URL

查看:175
本文介绍了果园CMS-配置基本URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用本地主机/ frankgiotto的基本URL安装在我的dev的机器上最新版本的果园。然后,我搬到现场www.frankgiotto.com和更新我的基本URL中的设置。

I installed the latest version of Orchard on my dev machine using a base url of localhost/frankgiotto. Then I moved the site to www.frankgiotto.com and updated my Base URL in the settings.

网站完美。我喜欢所有的,但有一件事是,所有的每一个页面上的链接被映射到www.frankgiotto.com/frankgiotto/etc~~V,我想简单地www.frankgiotto.com/etc

Site works perfectly. I love everything about it but the one thing is that all the links on every page are mapping to www.frankgiotto.com/frankgiotto/etc and I want simply www.frankgiotto.com/etc

这是我疯狂的时刻...帮助任何人!?

This is driving me insane at the moment.. help anyone!?

P.S ..是的,我做绝对确保基地址设置为www.frankgiotto.com
有趣的是,www.frankgiotto.com/Blog和www.frankgiotto.com/frankgiotto/Blog既工作又带我去同一个地方。它同样与网站上的一切。

p.s.. Yes, I made absolutely sure that Base Url is set to www.frankgiotto.com Interestingly enough, www.frankgiotto.com/Blog and www.frankgiotto.com/frankgiotto/Blog both work and take me to the same place. Its the same with everything else on the site.

推荐答案

是的,这是不幸中的已知问题。这是因为现在的链接和图片地址只是存储在数据库中的纯HTML。理想情况下,他们将被保存,而不是作为逻辑引用,并在生产服务器上,可以重订。此功能不存在,所以今天我们鼓励人们做的是使用一个端口,而不是对他们的开发框虚拟目录,如果他们要在域的根部署。这种方式相对URL只是工作。你的情况我怕你必须手动重订现有的联系,改变你的开发框配置。

Yes, that is a known issue unfortunately. This is because for now links and image addresses are just stored as plain HTML in the database. Ideally, they would be stored as logical references instead and could be rebased on the production server. This feature does not exist today so what we encourage people to do is to use a port rather than a virtual directory on their dev box if they are going to deploy at the root of a domain. This way relative urls just work. In your case I'm afraid you'll have to manually rebase the existing links and change your dev box configuration.

这篇关于果园CMS-配置基本URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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