IIS 7 301 Redirect for all contents of a directory

mandi224 used Ask the Experts™
I'm using IIS 7 URL rewriting on our site and want to have a 301 redirect of everything in our /catalog directory.

I added this rule to the web.config at the root of the site:
<rule name="No Catalog">
     <match url="^Catalog*$" />
     <action type="Redirect" redirectType="Permanent" url="/home" />

Open in new window

When I go to http://www.mysite.com/catalog, it performs the 301 redirect correctly.

However, if I go to something like http://www.mysite.com/catalog/category/something.aspx, it does not perform the 301 redirect like I want it to.

Is my match URL not correct? How can I get EVERYTHING within /catalog/ to 301 redirect to /home?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial