<p>I feel like I'm re-inventing the wheel here, but I need to find a way of taking a URL from a catchall,and redirecting that to another route.</p>

<p>The reason for this is because I need to do some things like adding session cookies for certain urls, and then pass them on to their relevant action.</p>

<p>What's the best way of implementing this?</p>

<p>Thanks in advance for any help!</p>

If I understand question...
Looking at your previous question (
redirect-to-controller-but-with-a-different-master-using-a-catchall-wildcard
) you want to take the wildcard from:
```
```
routes.MapRoute(
    "Partner",
    "partners/{partner}/{*wildcard}",
    new { controller = "Partners", action = "PartnerRedirect" }
);
```
```
And in the Partners/PartnerRedirect action, send it to the right controller/action specified in the wildcard?
I have no idea the best way to do this, but looking at ways to unit test url routing brought up this:
http://weblogs.asp.net/stephenwalther/archive/2008/07/02/asp-net-mvc-tip-13-unit-test-your-custom-routes.aspx
I'm not sure if it is an exact fit (ie. might not have to mock stuff), but it looks like all the data is returned from GetRouteData to pass to RedirectToAction method.