Copied to clipboard

Flag this post as spam?

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


  • Eran 292 posts 436 karma points
    Sep 01, 2011 @ 03:37
    Eran
    0

    umbracoReservedUrls not working as expected

    hi,

    i have one static html file that sits on the root folder and one folder that also contains static files.
    i want to serve both of them not with umbraco.

    i added the html file to the list in UmbracoReservedUrls:

    <add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/wholesale-distribution-software.html" />

    and added the folder to the UmbracoReservedPaths:

    <add key="umbracoReservedPaths" value="~/umbraco,~/install/, ~/StaticImgFromOldSite/" />

    but it still dont work..  anyone have an idea?...

    another thing with the static folder that i dont know if its related:

    when i access it with the fullpath: www.mydomain.com/StaticImgFromOldSite/index.html 
    its working good, but without extension its gets 404: www.mydomain.com/StaticImgFromOldSite

    by the way, the site is with integrated pipe line, iis7, umbraco 4.7, umbracoUseDirectoryUrls=true and also index.html is defined in the hosting panel as one of the default documents.

    Thanks!

  • Stefan Ekman 18 posts 37 karma points
    Sep 01, 2011 @ 14:13
    Stefan Ekman
    0

    Hi, 

    I was messing with this yesterday and it worked to remove the trailing / like this..

    <addkey="umbracoReservedPaths"value="/umbraco,/install/, /StaticImgFromOldSite"/>

    Cheers,

    Stefan

  • Eran 292 posts 436 karma points
    Sep 05, 2011 @ 00:23
    Eran
    0

    hi stefan,

    from some reason the umbracoReservedPaths  is working now, even with the ~ sign, and i managed to get to my URL.

    but still, umbracoReservedUrls  not working and i cant get to my static html page, i get 404 (even without the ~ sign).

    thanks,

    eran

     

  • All Blonde 86 posts 138 karma points
    Jul 17, 2012 @ 23:10
    All Blonde
    0

    Guy where should I place this umbracoreservedpaths?

  • Eran 292 posts 436 karma points
    Jul 18, 2012 @ 11:19
    Eran
    0

    you should see that key in the web.config file.

  • andrew shearer 506 posts 653 karma points
    Oct 31, 2012 @ 03:18
    andrew shearer
    0

    try removing all spaces i.e.

    value="~/umbraco,~/install/,~/StaticImgFromOldSite/"
  • All Blonde 86 posts 138 karma points
    Nov 06, 2012 @ 17:36
    All Blonde
    0

    I do not know what did helped but as soon as I open/save web.config file in VS instead of notepad it start working.

    Possible some encoding issue.

    Actually after that I put note on my desktop that Umbraco should be open only in VS and notepad is no-no....

    But just in case I also incorporated Andrew suggestion as well.

    Thanks

     

Please Sign in or register to post replies

Write your reply to:

Draft