Solved

How do write this URL Rewrite Rule for IIS

Posted on 2016-10-17
3
87 Views
Last Modified: 2016-10-18
How do I create URL Rewrite rule for IIS that will temporarily redirect any requested URL to my ShutDown.cfm page?

This will go into my web.config file which already has a few rewrites.

This is a microsoft server.

I need to show the ShutDown.cfm page while I do maintenance.
0
Comment
Question by:bigmikey88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 250 total points
ID: 41847711
you can add a rule like this:

<rule name="Redirect all to Shutdown" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Redirect" url="shutdown.cfm" />
                </rule>

Open in new window

0
 
LVL 17

Assisted Solution

by:Emmanuel Adebayo
Emmanuel Adebayo earned 250 total points
ID: 41847812
If you are running IIS 7 or above with ASP.NET role service enabled, you can install URL Rewrite Module. You can then create a rewrite rule by using URL Rewrite UI in IIS Manager by
    Go to IIS Manager.
    Select Default Web Site.
    In the Feature View click URL Rewrite.

For more info visit the link below
https://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
Regards
0
 

Author Closing Comment

by:bigmikey88
ID: 41848739
many thanks  

Michael
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question