Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 18, 2014 @ 17:41
    Fuji Kusaka
    0

    Duplicate Url with multilingual

    Hi,

    Am having some  very weird issues with one of my website where i just noticed when removing the hostname to which it is related to am getting the same exact page.

    For example i have a url like this

    http://mywebsitecom/en/somepage

    and if i remove the (en)

    http://mywebsitecom/somepage

    I get the same exact page but under content this node doesnt exist. Any thought what might be causing this ?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 18, 2014 @ 18:03
    Jan Skovgaard
    0

    Hi Fuji

    Do you have any redirects setup...some umbracoalias maybe?

    /Jan

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 18, 2014 @ 18:15
    Fuji Kusaka
    0

    Hi Jan,

    Nope no umbracoalias, do have some urlRewritting rules however.

    <add name="home"
        virtualUrl= "^~/en$"
        rewriteUrlParameter="ExcludeFromClientQueryString"
        destinationUrl="~/"
        ignoreCase="true"
        redirect="Application"
        redirectMode="Permanent" />

    But not all urls have this issue and both with (en) & without (en) giving me a status 200 not even 301.

     

     

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 18, 2014 @ 18:16
    Jan Skovgaard
    0

    Hi Fuji

    Ok...what does your content structure look like? Could you post a screendump?

    /Jan

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 18, 2014 @ 18:22
    Fuji Kusaka
    0

    Basic structure Jan,

    - Content 
    -- En
    --- somepage
    --- someotherpage

    But here am getting both en/somepage and /somepage with the same content. Same applies to the other culture. 

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 18, 2014 @ 20:43
    Jan Skovgaard
    0

    Hi Fuji

    What does your umbracoDomainPrefix setting look like in the /config/umbracoSettings.config file?

    And what exact version of Umbraco are you using? And how about 3rd party packages? Any of those in use?

    /Jan

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 19, 2014 @ 04:25
    Fuji Kusaka
    0

    Old version of umbraco 4.11.8 and umbraoDomainPrefix under the umbracoSettings.config file.

    <useDomainPrefixes>false</useDomainPrefixes> let me try setting it to True

    No 3rd party packages in used except contour but dont think contour will affect those url.

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 19, 2014 @ 04:39
    Fuji Kusaka
    0

    Setting DomainPrefixes to True doesnt change anything.

  • Yakov Lebski 427 posts 1654 karma points
    Nov 19, 2014 @ 07:13
    Yakov Lebski
    0

    I think the best way to manage multilingual web site is add hostname to specific node

    enter image description here

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 19, 2014 @ 07:29
    Jan Skovgaard
    0

    Hi Fuji

    Ok, but if you have a multilanguage site you need to set it to true and then add hostnames for the sites as Yakov explains above.

    Hope this helps.

    /Jan

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 19, 2014 @ 09:28
    Fuji Kusaka
    0

    Hi guys,

    Thanks but i have already set those before posting this threat !! :) 

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 19, 2014 @ 09:32
    Jan Skovgaard
    0

    Who are you threatening? :D

    Ok...well, I'm afraid I'm out of ideas about what the cause of this is mate.

    /Jan

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 19, 2014 @ 09:35
    Fuji Kusaka
    0

    I meant Issue Jan // That is so weird this one... 

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 19, 2014 @ 09:37
    Jan Skovgaard
    0

    I know, was just joking - Hende the big smiley :)

    But yup indeed weird...

    /Jan

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 19, 2014 @ 09:39
    Fuji Kusaka
    0

    :) Need to have a look at the config file and compare with another multilingual website.

    Thanks

  • Yakov Lebski 427 posts 1654 karma points
    Nov 19, 2014 @ 09:42
    Yakov Lebski
    0

    Restore your config files to initial state and just define hostname, it's must work

  • Fuji Kusaka 2203 posts 4220 karma points
    Dec 04, 2014 @ 14:06
    Fuji Kusaka
    0

    Hi Yakov,

    I restored a clean version of the web.config file and still not working. 

    Weird thing is when i removed the hostname (en) en/test.aspx (http://mywebsite.com/en/test.aspx) doesnt work which is right, but when setting the hostname i get both http://mywebsite.com/en/test.aspx & http://mywebsite.com/test.aspx working.

  • Fuji Kusaka 2203 posts 4220 karma points
    Dec 05, 2014 @ 07:33
    Fuji Kusaka
    0

    I somehow just notice something under my Properties tab. The Alternative Links is missing, do you think this might be causing this issue ?

    Only the link to document is there. 

    Any suggestions ?

  • Yakov Lebski 427 posts 1654 karma points
    Dec 05, 2014 @ 08:59
    Yakov Lebski
    0

    When you leave main site without domain and on additional language define full domain and culture theb you have no alternative links because the page answer only for one url

  • Fuji Kusaka 2203 posts 4220 karma points
    Dec 05, 2014 @ 09:05
    Fuji Kusaka
    0

    Hi Yakov, now i can see both when set domainPrefix to false. But somehow still getting a ghost url.

    both en/somepage/ and somepage is showing up.

  • Fuji Kusaka 2203 posts 4220 karma points
    Dec 05, 2014 @ 09:06
    Fuji Kusaka
    0

    I also have a umbraco v6 with same issue. Is this something to do with IIS  ?

  • Yakov Lebski 427 posts 1654 karma points
    Dec 05, 2014 @ 09:32
    Yakov Lebski
    0

    It's works in v6 also (I think was some issues at 6.0.X versuins) Set domainPrefix =false, if you have no different domain no additional action on required.

    if you domain in www.mywebsite.com -EN:Define only culture or set hostname www.mywebsite.com and culture en -ES:Define hostname www.mywebsite.com/es and culture es

  • 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