troubleshooting Question

URL Rewrite--redirecting to main URL when a specific folder gets entered

Avatar of Ben Conner
Ben ConnerFlag for United States of America asked on
Microsoft IIS Web Server
2 Comments1 Solution26 ViewsLast Modified:

I'm trying to use IIS' URL Rewrite to map any entry for a domain with /menus back to the original domain.
Example:  --> --> -->

and the same when the www. is omitted.

I've been trying variants on:

                <rule name="Remove_Menus" stopProcessing="true">
                    <match url="^(.*)(menus)$" />
                    <action type="Redirect" url="" />

Am getting tripped up by this though.  What I want is if anyone enters .../menu or something below menu, it will redirect to the main url.  ??


Paul MacDonald
Director, Information Systems

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros