Copied to clipboard

Flag this post as spam?

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


  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 07, 2011 @ 07:14
    Sherry Ann Hernandez
    0

    structure site with country folder in multilanguage

    Hello,

    I want my url to be like this

    http://localhost/dining.aspx - > for english site

    http://localhost/ae/dining.aspx -> for arabic site

     

    I set the hostname of arabic site to localhost/ae/ but even if I navigate to http://localhost/ae

    and I click on dining it always go to http://localhost/dining.aspx

    what am I missing here? why is it is not going to http://localhost/ae/dining.aspx

     

  • Calvin Frei 106 posts 314 karma points
    Feb 07, 2011 @ 08:12
    Calvin Frei
    0

    Do you set useDomainPrefices to true in the config/umbracoSettings.config?

    <useDomainPrefixes>true</useDomainPrefixes>

     

     

  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 07, 2011 @ 08:48
    Sherry Ann Hernandez
    0

    yes I did already. I also change

    <

     

     

    add key="umbracoHideTopLevelNodeFromPath" value="false" />

    My Url is now like this

    http://localhost/special-offers.aspx -> english

    http://localhost/ar/special-offers.aspx -> arabic

     

    But i'm getting an error when trying to access the arabic site. The error is An error occurred while processing your request.

    I check  the umbracologs table and the event viewer but I can't see the actual error from there.

  • Calvin Frei 106 posts 314 karma points
    Feb 07, 2011 @ 08:50
    Calvin Frei
    0

    See my edited post above, did you try this too?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 07, 2011 @ 09:02
    Jan Skovgaard
    0

    Hi Sherry

    Hae you added the hostname in Umbraco? And have you added the hostnames in IIS and modified your hosts file to contain the sites as well?

    /Jan

  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 07, 2011 @ 09:13
    Sherry Ann Hernandez
    0

    I already set umbracoHideTopLevelNodeFromPath to false and I added the hostname in umbraco. but in IIS not yet because I can't add the localhost/ar hostname.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 07, 2011 @ 09:16
    Jan Skovgaard
    0

    Hi Sherry

    Don't you have access to the hosts file on your local machine? (You are developing locally, right?)

    /Jan

  • Calvin Frei 106 posts 314 karma points
    Feb 07, 2011 @ 09:17
    Calvin Frei
    0

    I mean

    <useDomainPrefixes>true</useDomainPrefixes>

    in the config/umbracoSettings.config

  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 07, 2011 @ 10:07
    Sherry Ann Hernandez
    0

    @calvin - yes, I changed it already.

    @jan - I'm getting an error when adding this host header name in the default website http://localhost/ar

    i'm using iis 6.0 in our server I can easily set it up but with my local i'm not sure why i'm getting an error. It doesn't allow to use "/".

  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 07, 2011 @ 14:41
    Sherry Ann Hernandez
    0

    i'm getting this error even if I setup the hostname in the server. I even try republish the site.

     

    XML Parsing Error: no element found
    Location: http://208.75.250.78/ar/special-offers.aspx
    Line Number 1, Column 1:

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 07, 2011 @ 14:55
    Anthony Candaele
    0

    Hi Sherry,

    I had the same issues.

    I solved it by adding hostnames like this to my hosts file:

    127.0.0.1 www.flexisle.en.local

    Then I added this binding setting in IIS

    www.flexisle.en.local

    And in 'managing host names' in the Umbraco back office, I entered these settings:

    www.flexisle.en.local

    After that, the link www.flexisle.en.local worked on my local machine.

    greetings,

    Anthony

  • Christer Josefsson 55 posts 93 karma points
    Feb 07, 2011 @ 21:54
    Christer Josefsson
    0

    Anthony´s solution is the way to go when developing locally, #H5YR

  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 08, 2011 @ 06:15
    Sherry Ann Hernandez
    0

    what about when deploying to the server?

    how can I set it up? I'm not really very familiar with this IIS binding.

    in our server we want to host it temporary for testing as

    http://208.75.250.78/default.aspx -> we don't want to use the en folder for the english site

    http://208.75.250.78/ar/default.aspx -> for the arabic site.

     

    What setup do I need to achieve this?

  • Sherry Ann Hernandez 320 posts 344 karma points
    Feb 08, 2011 @ 07:18
    Sherry Ann Hernandez
    0

    Anybody can help setting this up in the server? I've used anthony's advice to set it up in my local machine but for the server i'm still quite confused

    Here's the setup that we want

    Currently we are still using the http://208.75.250.78 address for florahospitality because we haven't launched it yet.

    What we wanted is to setup the multilingual like this

    For English Site

    http://208.75.250.78                          -> This is for english home
    http://208.75.250.78/dining.aspx   -> For other pages

    For Arabic site

    http://208.75.250.78/ar                             -> For arabic home
    http://208.75.250.78/ar/dining.aspx      -> For other pages

    We really need this setup asap.

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft