Copied to clipboard

Flag this post as spam?

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


  • Jeffrey Schoemaker 408 posts 2138 karma points MVP 9x c-trib
    May 10, 2010 @ 11:25
    Jeffrey Schoemaker
    0

    Exclude pages from a domain for another domain in multi lingual websites

    I made a site in Umbraco after watching the movies about "Running Multiple sites". I copied my site (with the language "Dutch" assinged to it) and made an english version. Both sites I assigned a different hostname (dutch.mywebsite.com and english.mywebsite.com)

    I have the following site structure

    * Home (domain dutch.mywebsite.com)
    ** Artikel 1 (artikel_1.aspx)
    ** Contact  (contact.aspx)
    .....

    * Home (domain english.mywebsite.com)
    ** Article 1 (article_1.aspx)
    ** Contact (contact.aspx)

    If I browse to dutch.mywebsite.com/artikel_1.aspx it shows the right page. But the problem is that I can also go to dutch.mywebsite.com/article1_aspx, which shows a article of the other domain, although the article_1.aspx is not in the tree of dutch.mywebsite.com.

    Is there a way to prevent this from happening without making a 301-redirect for every page?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 10, 2010 @ 12:07
    Dirk De Grave
    1

    Jeffrey,

    Did you change the useDomainPrefixes option to true in config/umbracoSettings.config

     <useDomainPrefixes>true</useDomainPrefixes>

     

    Hope this helps.

    Regards,

    /Dirk

     

  • Jeffrey Schoemaker 408 posts 2138 karma points MVP 9x c-trib
    May 10, 2010 @ 12:15
    Jeffrey Schoemaker
    0

    Thanks, Dirk. Sometimes life's so easy :)

  • 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