Copied to clipboard

Flag this post as spam?

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


  • Mark 3 posts 23 karma points
    Feb 23, 2015 @ 09:30
    Mark
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 23, 2015 @ 09:53
    Jan Skovgaard
    1

    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

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 23, 2015 @ 09:55
    Dennis Aaen
    0

    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,

    /Dennis

  • Mark 3 posts 23 karma points
    Feb 23, 2015 @ 10:28
    Mark
    0

    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:

    • 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)?

    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

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 23, 2015 @ 10:35
    Dennis Aaen
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 23, 2015 @ 10:55
    Jan Skovgaard
    0

    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

  • Fred Lou 4 posts 24 karma points
    Feb 26, 2015 @ 15:28
    Fred Lou
    0

    Thanks for bringin this up Mark. I have the same questions. 

     

    Thanks for the answers.

  • Carlos Mosqueda 240 posts 431 karma points
    Feb 27, 2015 @ 20:04
    Carlos Mosqueda
    0

    @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

Please Sign in or register to post replies

Write your reply to:

Draft