: How to redirect pages during the maintenance to home page on IIS 7? I have IIS 7 website. I need to redirect users during maintenance time to home page from other sub pages within site. for
I have IIS 7 website.
I need to redirect users during maintenance time to home page from other sub pages within site.
for example
if user request www.example.com/products/234
I need system to show default message, site under maintenance not 404 error
How it can be done in IIS 7?
More posts by @Gail5422790
2 Comments
Sorted by latest first Latest Oldest Best
You could use the app_offline.htm feature. There is a great answer on StackOverflow about this:
How to use app_offline.htm
We use this for our .Net sites and it works well.
<configuration>
<system.webServer>
<httpRedirect enabled="true" exactDestination="true" httpResponseStatus="Found">
<add wildcard="*.php" destination="/default.htm" />
</httpRedirect>
</system.webServer>
</configuration>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.