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
    May 27, 2013 @ 18:36
    Fuji Kusaka
    0

    Managing different Hostnames under same umbraco instance

    Hi everyone,

    Am having some major issues when managing different hostnames under the same website.

    So the idea behind it is to have a main website with multilingual and have the mobile version using a different hostname under but under the same instance.

    I have the following structure in my content section :

    - Content
    -- Website Configs
    --- En
    ---- Pages
    --- Mobile
    ---- Pages


    Since here the mobile version is only picking its content from the EN (Main Website) so as to get admin to update only 1 website but having both EN and Mobile EN updated.

    Now EN has hostname www.mywebsite.com/en and the mobile En has m.mywebsite.com.

    When browsing the mobile part its triggering 404 error since am getting the following url m.mywebsite.com/mobile/page1.aspx. Can some suggest how do i get to bipass this url to m.mywebsite.com/page instead ?

     

  • Stephen 767 posts 2273 karma points c-trib
    May 28, 2013 @ 08:08
    Stephen
    0

    In theory, if you setup domain "www.mywebsite.com/en" on "EN" and "m.mywebsite.com" on "Mobile" then the url "m.mywebsite.com/page1" should work (note: no "mobile" in that url). If you want the url to be "m.mywebsite.com/mobile/page1" then you need to setup dmoain "m.mywebsite.com/mobile" on "Mobile". Does that make sense?

  • Fuji Kusaka 2203 posts 4220 karma points
    May 28, 2013 @ 08:30
    Fuji Kusaka
    0

    Hi Stephen,

    Makes sense yes. But here is the think, what if i have 2 default page with 2 different hostname ? 

    That is something like 

    Content
    -- EN  (Main EN SITE)
    -- FR ( Main FR SITE) 
    ++ EN (Mobile EN SITE)
    ++ FR (Mobile FR SITE)
    Is there a way around to get the url like this 
    EN -- www.mywebsite.com/en
    FR -- www.mywebsite.com/fr 
    EN ++ m.mywebsite.com/en
    FR ++ m.mywebsite.com/fr 
  • Stephen 767 posts 2273 karma points c-trib
    May 28, 2013 @ 08:34
    Stephen
    0

    Well... setup the domains as per your second block and that should work. What version of Umbraco are you using by the way?

  • Fuji Kusaka 2203 posts 4220 karma points
    May 28, 2013 @ 08:45
    Fuji Kusaka
    0

    Am using v4.9.1. 

    When setting up the domain for mobile version to m.mywebsite.com/en its redirecting me to the content of the main EN website but unchanged url.

    That is www.mywebsite.com/en displaying its own content under but using the url of mobile m.mywebsite.com/en

    for the record i already set the useDomainPrefix to TRUE and umbracoHideTopLevelNodeFromPath to TRUE

  • Stephen 767 posts 2273 karma points c-trib
    May 28, 2013 @ 08:49
    Stephen
    0

    Ah, using pre-4.10... then yes you'll see strange behaviors, which is one of the reason why hostnames & co have been extensively refactored starting with 4.10. You'll have to experiment I guess -- I can't immediately think of a setup that would work in your case.

  • Stephen 767 posts 2273 karma points c-trib
    Jun 04, 2013 @ 11:44
    Stephen
    0

    When you say.. "That is www.mywebsite.com/en displaying its own content under but using the url of mobile m.mywebsite.com/en" I'm not sure I understand you. So it displays the non-mobile page, but the links in the page are the mobile links?

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 04, 2013 @ 11:48
    Fuji Kusaka
    0

    What is happening here the redirection and detection to mobile website works but when it is redirected to m.mywebsite.com/en, its actually the main website being displayed instead of the mobile.

    So m.mywebsite.com/en and www.mywebiste.com/en both displaying the same content.

  • Stephen 767 posts 2273 karma points c-trib
    Jun 04, 2013 @ 11:52
    Stephen
    0

    So m.mywebsite.com/en displays pages that are under www.mywebsite.com/en right? Pages that _do_ exist under m.mywebsite.com/en? Strange... that should work even with pre-4.10... trying to think about something...

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 04, 2013 @ 12:23
    Fuji Kusaka
    0

    One thing i forgot to mention is since am using the ultimate site structure here i have some urlRewriting going on. 

    Hmm....since both main website and mobile has EN as root for their respective Hostnames, that might be the issue ?

       virtualUrl= "^~/$"
     rewriteUrlParameter="ExcludeFromClientQueryString"
    destinationUrl="~/en/"
    ignoreCase="true"
      redirect="Application"
     redirectMode="Permanent" />
  • Stephen 767 posts 2273 karma points c-trib
    Jun 04, 2013 @ 13:41
    Stephen
    0

    Is that external redirect? Then check what happens with a tool like Fiddler. You might indeed be redirecting to www youserlf.

Please Sign in or register to post replies

Write your reply to:

Draft