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 ?
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?
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.
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?
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.
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...
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 :
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 ?
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?
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
Well... setup the domains as per your second block and that should work. What version of Umbraco are you using by the way?
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
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.
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?
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.
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...
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 ?
Is that external redirect? Then check what happens with a tool like Fiddler. You might indeed be redirecting to www youserlf.
is working on a reply...