本文介绍了设置主机名时,Umbraco不正确的“链接到文档”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上为Node1定义了一个域(管理主机名选项)并具有Umbraco树结构

Basically defined a domain (Manage hostnames option) for Node1 and have Umbraco tree structure

Content
     + en
       + Node1
        + Subnode1
        + Subnode2
       + Node2
     + es
       + Node3
        …

当检查'Subnode1'属性时,'链接到文档'和'替代链接'路径不一致:

When check ‘Subnode1’ properties have that ‘Link to document’ and ‘Alternative Links’ path are inconsistent:

Link to document: /Node1/subnode1.aspx
Alternative Links: http://www.domain.com/subnode1.aspx

我想摆脱'链接到文档'中的文件夹'/ Node1 /',它返回NiceUrl并且在页面上弄乱了我的Url链接。

I would like to get rid of the folder ‘/Node1/’ in ‘Link to document’, that is returned in NiceUrl and is messing my Url links on pages.

我想只有:

Link to document: /subnode1.aspx
Alternative Links: http://www.domain.com/subnode1.aspx

试图按照
中的步骤
但没有运气我唯一得到的是:

Tried to follow steps inhttp://our.umbraco.org/forum/using/ui-questions/3505-Change-site-root-node,-NiceUrl-doesnt-changebut no luck the only thing I get is:

Page not found
    umbraco tried this to match it using this xpath query'/domainprefixes-are-used-so-i-do-not-work')
    This page can be replaced with a custom 404 page

希望我得到一些有用的回复:)
谢谢

Hope I get some helpful reply :)Thanks

推荐答案

尝试在此处实施解决方案:

Try implementing the solution here:http://our.umbraco.org/forum/using/ui-questions/5481-niceurl--3rd-level

此外,您是否尝试重新发布整个网站?

Also, did you try to republish the entire site?

这篇关于设置主机名时,Umbraco不正确的“链接到文档”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 09:31