Solved

How do write this URL Rewrite Rule for IIS

Posted on 2016-10-17
3
62 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
3 Comments
 
LVL 49

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 16

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now