I'm new in umbraco. I have a web site running umraco v4.6. I want to migrate "static html mobile site" to current web site. I've uploaded all files to the server www.xxxx.com/mobile/index.html is working fine but when i want to access to www.xxxx.com/mobile I'm recieving this error:
No umbraco document matches the url 'www.xxxx.com/mobile'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "mobile"] | /root/*/* [@urlName = "mobile"]')
What you need to do to be able to use the www.xxxx.com/mobile is go to the web.config file, find the umbracoReservedPaths entry in the web.config. In there you need to add the path to the mobile folder, like this:
as I mentioned before web site already running via umbraco but mobile site is static html (non umbraco). we have all pages for web and mobile. Is there any way to redirect spesific umbraco pages to static html pages? for example:
we have www.xxxx.com/asd/xcv (umbraco web page)
also we have www.xxxx.com/mobile/asd/xcv.html
how can we redirect web page to mobile html (only for mobile devices)?
For the redirect, I think that you should take a look at the 301 Url tracker package. With this package you can create create your own redirects, based on a simple URL or using a Regex pattern, and a lot more. You will find the package here: https://our.umbraco.org/projects/developer-tools/301-url-tracker
For the mobile dection you could try to have a look at this http://51degrees.codeplex.com/ perhaps this could be an option.
As Dennis says above the 301 url tracker package might be an option.
But you can do it in other ways as well. But the 301 package gives you many options so you don't need to worry about the details. But if it does not suit your needs you can try having a look in the /config/UrlRewriting.config file where it's possible for you to setup redirect/rewrite rules yourself.
In order to do device detection this is not something that is specific to Umbraco but is a general challenge no matter what system you're using. JavaScript is not the way to do - As Dennis mentions 51degrees could be an option - You can also consider exploring Device atlas https://deviceatlas.com/ or WURFL http://wurfl.sourceforge.net/ - If I remember correctly both Device Atlas and 51degrees are using the Wurl database somehow.
But integrating device detection with Umbraco is beyond the scope of this post I think :) I think that's a whole topic by itself.
I would seriously suggest not going with separate "Mobile" site. It gets very complicated to manage with multiple templates.
I would suggest the Responsive layout approach. This would just be my suggestion so you only have to worry about simple CSS changes using the @Media query.
Migrating Static Html
Hi Guys,
I'm new in umbraco. I have a web site running umraco v4.6. I want to migrate "static html mobile site" to current web site. I've uploaded all files to the server www.xxxx.com/mobile/index.html is working fine but when i want to access to www.xxxx.com/mobile I'm recieving this error:
No umbraco document matches the url 'www.xxxx.com/mobile'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "mobile"] | /root/*/* [@urlName = "mobile"]')
anybody knows how to handle this error?
many thanks
Hi Mark and welcome to our :)
It's because you need to tell Umbraco that it should not try to resolve that site.
You do this in the web.config file by adding the /mobil folder to the umbracoReservedPaths attribute.
Then it should work.
Hope this helps.
/Jan
Hi Mark and welcome to our.
What you need to do to be able to use the www.xxxx.com/mobile is go to the web.config file, find the umbracoReservedPaths entry in the web.config. In there you need to add the path to the mobile folder, like this:
Hope this helps,
/Dennis
many thanks Jan. I have another question :)
as I mentioned before web site already running via umbraco but mobile site is static html (non umbraco). we have all pages for web and mobile. Is there any way to redirect spesific umbraco pages to static html pages? for example:
how can we redirect web page to mobile html (only for mobile devices)?
ps: currently we are redirecting all web pages to mobile main page www.xxxx.com/mobile/index.html with this https://our.umbraco.org/forum/templating/templates-and-document-types/44582-Help-with-mobile-site-detection
many thanks for your help
Hi Mark,
For the redirect, I think that you should take a look at the 301 Url tracker package. With this package you can create create your own redirects, based on a simple URL or using a Regex pattern, and a lot more. You will find the package here: https://our.umbraco.org/projects/developer-tools/301-url-tracker
For the mobile dection you could try to have a look at this http://51degrees.codeplex.com/ perhaps this could be an option.
Hope this helps,
/Dennis
Hi Mark
As Dennis says above the 301 url tracker package might be an option.
But you can do it in other ways as well. But the 301 package gives you many options so you don't need to worry about the details. But if it does not suit your needs you can try having a look in the /config/UrlRewriting.config file where it's possible for you to setup redirect/rewrite rules yourself.
In order to do device detection this is not something that is specific to Umbraco but is a general challenge no matter what system you're using. JavaScript is not the way to do - As Dennis mentions 51degrees could be an option - You can also consider exploring Device atlas https://deviceatlas.com/ or WURFL http://wurfl.sourceforge.net/ - If I remember correctly both Device Atlas and 51degrees are using the Wurl database somehow.
But integrating device detection with Umbraco is beyond the scope of this post I think :) I think that's a whole topic by itself.
Hope this helps.
/Jan
Thanks for bringin this up Mark. I have the same questions.
Thanks for the answers.
@All,
I would seriously suggest not going with separate "Mobile" site. It gets very complicated to manage with multiple templates.
I would suggest the Responsive layout approach. This would just be my suggestion so you only have to worry about simple CSS changes using the @Media query.
-Carlos
is working on a reply...