?
Solved

How do write this URL Rewrite Rule for IIS

Posted on 2016-10-17
3
Medium Priority
?
91 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 53

Accepted Solution

by:
Ryan Chong earned 1000 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 18

Assisted Solution

by:Emmanuel Adebayo
Emmanuel Adebayo earned 1000 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

777 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