Copied to clipboard

Flag this post as spam?

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


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 16, 2010 @ 18:26
    Tim
    0

    useDomainPrefixes not working?

    I have a site with one root node at the moment, but I've set useDomainPrefixes to true in the umbraco config file. Am I right in thinking that this should make the site append the domain for the site to beginning of all links when you call NiceUrl from the library?

    I have a domain/language configured for the root of the site, but its not being added to the generated URLs, at all. Have tried touching the web.config and various other stuff, but still no joy. Running 4.5.2.

    Anyone got any ideas what could be wrong?

    Cheers,

    Tim.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 16, 2010 @ 18:53
    Tim
    0

    Wierdly, if I use any domain other than the actual domain that the site uses in IIS, it works (at least for the first two levels, after that it ignores the domain, that appears to be an older issue that has never been fixed). If I use the domain that IIS is using though, it just ignores the setting and renders the links without the domain.

    For example, I have dev.xxx.com pointing at the site in IIS. I have dev.xxx.com as the hostname, set it to use the prefixes, nada. If I change the hostname to pie.xxx.com, or any other domain at all, it appends the prefix. Wierdness.

    I need it to work on more than two levels of content, and I need it to work with the actual domain assigned to the node, even if it is the same one that IIS is using. So it looks like I might be better off coding something myself. Ah well.

  • Eduardo 106 posts 130 karma points
    Nov 16, 2010 @ 19:19
    Eduardo
    0

    Hi Tim,

    Check this link,

    http://our.umbraco.org/forum/ourumb-dev-forum/bugs/11974-Bugs-in-domain-prefixes

    My solution for this problem:

    I have one rootnode for each site, one for Spanish version, one for English version and the last one for the French version of my site.

    I configure the HostName for the English and French versions (http://english.be-computed.com/ and http://francais.be-computed.com/ respectively).

    http://es.tinypic.com/view.php?pic=10f99om&s=7

    HTH.

    Sincere regards,
    Eduardo Macho

     

  • Connie DeCinko 931 posts 1160 karma points
    Mar 28, 2011 @ 17:32
    Connie DeCinko
    0

    I too have discovered the reason for my heartburn, my links do not work correctly below the second level.  The link referenced is no longer valid.  Where can I find a fix or hack or resolution?

     

Please Sign in or register to post replies

Write your reply to:

Draft