Copied to clipboard

Flag this post as spam?

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


  • Mark Olbert 87 posts 117 karma points
    Oct 25, 2009 @ 02:55
    Mark Olbert
    0

    Taking a Site Offline?

    When I've built sites using plain old ASPNET, one of the features I like to include is a setting in web.config that lets me redirect all traffic to a particular page. This lets me take a site "offline" so I can upload new features, update databases or whatever without having the process visible to the world.

    Is there a way to do this in umbraco? When I've done it in my sites I usually extend the global asax "handler" to preprocess every request and send it to a particular page, generally a static html page.

    - Mark

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 25, 2009 @ 05:27
    Aaron Powell
    4

    You can just use the App_Offline file - http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx

    Or you can use an ISAPI rewrite if you want to block all but certain IP's - http://blog.leekelleher.com/2009/09/29/putting-your-asp-net-web-application-in-maintenance-mode-using-isapi_rewrite/

  • Mark Olbert 87 posts 117 karma points
    Oct 25, 2009 @ 16:31
    Mark Olbert
    0

    Great, thanks!

    - Mark

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Oct 26, 2009 @ 00:18
    Lee Kelleher
    3

    @slace... damn, I write up a blog post for you... and you get the karma points! haha ;-)

  • Mark Olbert 87 posts 117 karma points
    Oct 26, 2009 @ 02:18
    Mark Olbert
    0

    Sorry about that.

    - Mark

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Oct 26, 2009 @ 11:00
    Lee Kelleher
    0

    No worries Mark... it's all good!

  • Matt Taylor 873 posts 2086 karma points
    Dec 11, 2012 @ 21:45
    Matt Taylor
    0

    I've just tried the ISAPI_Rewrite method but found it ineffective.
    The site just continues to load.

    I've placed the .htaccess and offline.html file in the site's root and the contents of the .htaccess are exactly from the blog post.

    I'me using IIS7 and Umbraco 4.7. What am I doing wrong?

    Thanks, Matt

  • Steve Brown 125 posts 290 karma points
    Apr 11, 2013 @ 22:30
    Steve Brown
    0

    I know this is kinda old, but I had the same problem and Google brought me here, so thought I'd share what I found. I created a file called "app_offline.htm" (no L) in my site's root directory to achieve the desired effect.

  • Thomas Egebrand Gram 63 posts 138 karma points
    Sep 23, 2013 @ 11:22
    Thomas Egebrand Gram
    0

    Above post confirmed! It needs to be app_offline.htm, not ".html".

    Bonus info:
    Setting Umbraco into this mode allows the SQL Server CE to be downloaded. :)

Please Sign in or register to post replies

Write your reply to:

Draft