Dhaval
Dhaval

Reputation: 2861

how to achieve conditional app_offline.htm in asp .net IIS 7

I am going to upload new look of my site.my site is in ASP .NET , C#.

What i want that during my testing time the site should in Maintenance mode but i should be able to access the site.

So my question is can i have conditional app_offline.htm , so my site will be accessible from my IP and others will see app_offline page.

Please note I can change my IIS setting if required.

Upvotes: 2

Views: 1819

Answers (1)

michaelbinks
michaelbinks

Reputation: 370

Sadly I dont think that is possible. App_offline.htm is a one-trick-pony and just takes the app offline.

You mention being able to amend IIS settings. Are you able to set up a second site within IIS and restrict access by IP address, therefore still having your existing site online.

Upvotes: 1

Related Questions