Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Sep 27, 2011 @ 03:36
    Tom
    0

    Manage Hostnames Scenario

    Hi All,

    I have a scenario where I would like to do the following

    I have site.com.au, site.co.nz, site.com

    all the pages for these sites will be the same with the exception of a competition area on the site.

    occasionally the client would like to run a separate competition based on certain domains

     

    i.e. site.com.au will have prize money displayed in AUD and a different prize to a competition running in site.co.nz

     

    i was thinking of the following maybe sharing hostnames from the root node but then for competitions set up something like

     

    http://www.site.com.au/au-competition

    http://www.site.co.nz/nz-competition

    is there any way to do it so i could just have

    http://www.site.co.nz/competition

    http://www.site.com.au/competition

     

    serve different competition pages based on the same end part of the url? short of mirroring the entire site for each domain?

     

    Thanks,

    Tom

  • Tom 713 posts 954 karma points
    Sep 27, 2011 @ 07:22
    Tom
    0

    I would really prefer not to have to duplicate my tree for each domain

    just have certain nodes in the tree that i can apply to certain domains..

     

    i.e.

     

    Home  - bound to http://www.domain.com.au, www.domain.co.nz

        - Products - bound to both as is a child of home

        - Competitions NZ - bound to www.domain.co.nz/competitions-nz

        - Competitions AU - bound to www.domain.com.au/competitions-au

        - About Us - bound to both as a child of home

     

    etc

  • Paul Blair 466 posts 731 karma points
    Sep 28, 2011 @ 09:17
    Paul Blair
    0

    I'm not sure if this will work, but you could set up the competition pages like you want:

    /competitions-nz
    /competitions-au

    and then use URL re-writing (/config/urlrewriting.config) to get the desired URL.

        <add name="nzcompetition"
              virtualUrl="(.*)://www.site.co.nz/competition(.*)"
              rewriteUrlParameter="ExcludeFromClientQueryString"
              destinationUrl="$1://www.site.co.nz/competitions-nz$2"
              ignoreCase="true" />

Please Sign in or register to post replies

Write your reply to:

Draft