Copied to clipboard

Flag this post as spam?

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


  • Michael Cazzarolli 16 posts 37 karma points
    Jan 17, 2012 @ 16:35
    Michael Cazzarolli
    0

    Link to Document includes father node, not working

    Hi, I've searched all the forum for a solution, and found many topics about urlrewriting and hidetoplevelnodefrompath, but none have worked for me...

    This is the structure of my website:

    Content

    -index
    -login
    -... (etc etc)
    -newsArchive
    --news1
    --news2
    --... (etc etc)

    i have other 2nd level nodes like newsArchive, and my problem is that 3rd level nodes (in this example news1, news2) have the following "Link to Document" path: /newsArchive/news1, so generically: /2ndLevelNode/3rdLevelNode

    and they don't work. You can see it here:
    http://www.studiocgroup.eu/newsarchive/prova.aspx doesn't work
    http://www.studiocgroup.eu/prova.aspx works

    So, i fiddled with the web.config but no luck.

    This is my current situation: I have an Umbraco website with a virtual directory inside it, so I have wrapped the <system.web> and <system.webserver> tags in a <location path="." inheritInChildApplications = "false"> tag, or else my virtual directory won't open because of Umbraco.

    here you can see my web.config file: http://www.filedropper.com/web_8

    I checked my UrlRewriting.config file too, and it has no rules inside of it.

    Thanks in advance!

  • Michael Cazzarolli 16 posts 37 karma points
    Jan 18, 2012 @ 15:37
    Michael Cazzarolli
    0

    Here's some update:

    I tried using a clean web.config, but there's no difference: the structure is like this

    [Content]
    -indexLink to Document: /index.aspx
    -loginLink to Document: /login.aspx 
    -newsArchiveLink to Document: /newsArchive.aspx 
    --news1Link to Document: /newsArchive/news1.aspx 
    --news2Link to Document: /newsArchive/news2.aspx

    I tried creating a test website with umbraco, and when i edit the hideTopLevelNodeFrompath it works, it hides or shows but Umbraco is able to find the page it links to EITHER WAY.
    In this website though,  it doesn't work. If i use a empty or bugged web.config he sees it and 'crashes', but he doesn't give a **** about the hideTopLevelNodeFrompath property... So the Link to Document never changes, and Umbraco doesn't find the page either way.

    PLEASE help me, it's for my company's site!

  • Michael Cazzarolli 16 posts 37 karma points
    Jan 18, 2012 @ 16:31
    Michael Cazzarolli
    1

    Ooookay, so, I found the answer!

    I searched and searched and searched, until I decided to look in EVERY .config file (even if I edited just the web.config file).
    I checked /config/umbracoSettings.config, and I found this tag:

    <useDomainPrefixes>false</useDomainPrefixes>

    I changed it to

    <useDomainPrefixes>true</useDomainPrefixes>

    and voila, it worked like a charm!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies