Mobile app version of vmapp.org
Login or Join
Gail5422790

: 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

@Gail5422790

Posted in: #Iis7 #Seo

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

2 Comments

Sorted by latest first Latest Oldest Best

 

@Murphy175

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.

10% popularity Vote Up Vote Down


 

@Bethany197

<configuration>
<system.webServer>
<httpRedirect enabled="true" exactDestination="true" httpResponseStatus="Found">
<add wildcard="*.php" destination="/default.htm" />
</httpRedirect>
</system.webServer>
</configuration>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme