Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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.
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:
<add key="umbracoReservedPaths" value="/umbraco,/install,/YOUR/PATH/HERE"/>
Hope this helps,
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
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.
But integrating device detection with Umbraco is beyond the scope of this post I think :) I think that's a whole topic by itself.
Thanks for bringin this up Mark. I have the same questions.
Thanks for the answers.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted