Call us: +61 3 9005 5945
Creative ChaosCreative ChaosCreative ChaosCreative Chaos
  • Home
  • About
  • Services
    • Web Design
    • Web Development
    • Ecommerce
    • Search Engine Optimisation
    • Graphic Design & Branding
    • Website Maintenance
    • Tech Support
  • Portfolio
  • News
  • Contact Us
  • Client Login

web.config Temporary Redirect During Maintenance

The following rule allows us to enable maintenance mode on a site.

Step 1 – Create an app_offline.htm file for the page you want users to see while the website is undergoing maintenance.

Step 2 – Use the following web.config file making sure to change the REMOTE_ADDR pattern to your IP address, and the Redirect line to the full URL of your app_offline.htm file.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
 <rewrite>
 <rules>
 <rule name="MAINTENANCE MODE" stopProcessing="true">
 <match url="^(.*)$" ignoreCase="false" />
 <conditions> 
 <add input="{REMOTE_ADDR}" pattern="^12\.34\.56\.78" ignoreCase="false" negate="true" />
 <add input="{URL}" pattern="^/app_offline\.htm$" ignoreCase="false" negate="true" />
 <add input="{URL}" pattern="\.(jpe?g?|png|gif|css|js)" negate="true" />
 </conditions>
 <action type="Redirect" redirectType="Temporary" url="http://www.yoursite.com.au/app_offline.htm" />
 </rule>
 </rules>
 </rewrite>
 </system.webServer>
</configuration>


We love to hear from everyone! You can stay in touch with us in all sorts of ways:

  • Email. please use our contact form
  • Phone. +61 3 9005 5945

Creative Chaos
PO Box 11158
Frankston, Victoria, 3199
Australia

  • Home
  • About
  • Services
  • Portfolio
  • Contact Us
Copyright © 2004 - 2024 Creative Chaos Pty. Ltd. All Rights Reserved. Terms & Conditions
  • Home
  • About
  • Services
    • Web Design
    • Web Development
    • Ecommerce
    • Search Engine Optimisation
    • Graphic Design & Branding
    • Website Maintenance
    • Tech Support
  • Portfolio
  • News
  • Contact Us
  • Client Login
Creative Chaos