Copied to clipboard

Flag this post as spam?

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


  • Aileen 59 posts 79 karma points
    Nov 15, 2011 @ 11:05
    Aileen
    0

    Adding Virtual Directories in Umbraco

    Hi

    I have a site which needs to be setup as following:

     - www.hostheader.com - contains pages for the uk
     - www.hostheader.com/usa - contains pages for the usa
     - www.hostheader.com/italy - contains pages for italy

    Ideally in my content tree I'd like to have the following:

    Content
     - UK Site
     - USA Site
     - Italy Site

    Does anyone know whether it is possible to setup my site in this way? How would I add the hostheaders for these sites. At the moment I have it setup as:

    Content
     - UK Site
         - USA Site
         - Italy Site

    Where the USA and Italy sites are children of the UK site.

    Thanks,
    Aileen

  • Thijs 97 posts 117 karma points
    Nov 15, 2011 @ 11:08
    Thijs
    0

    You should setup your site with each top level node as a diferent language. Don't make a language site a child of another language site :) If you make the UK-site the first node, Umbraco will uses www.hostheader.com as the UK site

    By managing domains you can add the hostheaders.

    Thijs

  • Aileen 59 posts 79 karma points
    Nov 15, 2011 @ 11:08
    Aileen
    0

    But what if my hostheader is the same for all 3 sites?

    Cheers

    Aileen

  • Thijs 97 posts 117 karma points
    Nov 15, 2011 @ 11:15
    Thijs
    0

    If you use this structure you can access the site like this

    Content
    - UK => www.hostheader.com OR www.hostheader.com/uk
    - USA => www.hosteader.com/usa
    - Italy=> www.hostheader.com/italy

    This is what you want to accomplish?

    If you uses children you will have stuff like www.hostname.com/uk/italy ...

    just use the 'manage hostnames' on the top nodes :)

  • Aileen 59 posts 79 karma points
    Nov 15, 2011 @ 11:16
    Aileen
    0

    Yeah - that's exactly what I want. I tried it and it didn't work but now it's working all of a sudden :) Thanks for your help!

  • Aileen 59 posts 79 karma points
    Nov 21, 2011 @ 10:36
    Aileen
    0

    Hi Thijs

    I thought that this was working but unfortunately not. I'm just getting a 404 when I try to access the page. Any ideas?

    Cheers

    Aileen

  • Thijs 97 posts 117 karma points
    Nov 21, 2011 @ 10:42
    Thijs
    0

    Make sure that in your umbracoSettings.config the following line is present:

    <useDomainPrefixes>true</useDomainPrefixes>
    

    This post might also be helpful.

    Hope this fixes your problem,

    Thijs

  • Aileen 59 posts 79 karma points
    Nov 21, 2011 @ 11:22
    Aileen
    0

    hmmm - still no luck

  • Thijs 97 posts 117 karma points
    Nov 21, 2011 @ 11:53
    Thijs
    0

    I'm sorry then I don't know what the problem is.. I hope someone else read this post and can help you further..

    Thijs

  • Aileen 59 posts 79 karma points
    Nov 21, 2011 @ 12:46
    Aileen
    0

    Thanks for your help anyway!

  • Aileen 59 posts 79 karma points
    Nov 21, 2011 @ 13:33
    Aileen
    0

    Aha - fixed it. I needed to do the following:

    • set umbracoHideTopLevelNodeFromPath to false in web.config
    • set umbracoUseDirectoryUrls to true to false in web.config
    • set umbracoUrlName to 'usa'
    • add host header www.hostheader.com to the UK
    • add host header www.hostheader.com/usa to the USA site
  • Thijs 97 posts 117 karma points
    Nov 21, 2011 @ 13:34
    Thijs
    0

    Glad you fixed it :)

Please Sign in or register to post replies

Write your reply to:

Draft