Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niels 63 posts 119 karma points
    Jun 20, 2012 @ 14:26
    Niels
    0

    Get 404-error on NiceUrl

    I'm not sure if this is the appropriate category to open this topic, but it's worth a shot. 

    I've created a website in umbraco 4.7.1. a while ago, but i've checked the analytics and it showed some 404 errors. When I checked the url's, the rootnode was displayed in the url's.

    So what must be:
    /news/newsitem.aspx

    was:
    /rootnodename/news/newsitem.aspx (on this I get a 404 page)

    Therefore I checked the web.config if 'umbracoHideTopLevelNodeFromPath' was set to true and this was the case.

    I hope somebody can help me on this one. Thanks!

    The xslt looks like this:

    <xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc and string(umbracoNaviHide) != '1']">
        <xsl:sort select="@createDate" order="descending" />
        <xsl:if test="not(position() > 2)">
        <div>
          <a href="{umbraco.library:NiceUrl(@id)}" title="{pageTitle}">
            <xsl:value-of select="@nodeName" />
            </a>
            <xsl:value-of select="umbraco.library:FormatDateTime(@createDate, 'd MMMM yyyy')"/> - <xsl:value-of select="umbraco.library:TruncateString(umbraco.library:StripHtml(bodyText), 120, '...')" /><br />
            <a class="titlenews" href="{umbraco.library:NiceUrl(@id)}" title="Read more" rel="nofollow">Read more</a>
          </div>
        </xsl:if> </xsl:for-each>

     

  • Rodion Novoselov 694 posts 859 karma points
    Jun 21, 2012 @ 14:12
    Rodion Novoselov
    0

    Hi. Are there more than one single root on your website?

  • Niels 63 posts 119 karma points
    Jun 21, 2012 @ 14:15
    Niels
    0

    There is a root with hostnames and a rootnode that contains slides for a slideshow.

Please Sign in or register to post replies

Write your reply to:

Draft