<p>I've started with ASP.NET MVC recently, reading blogs, tutorials, trying some routes, etc. Now, i've stumbled on a issue where i need some help.</p>

<p>Basically, i have an URL like /products.aspx?categoryid=foo&amp;productid=bar</p>

<p>Most tutorials/examples propose to map this to something like: /products/category/foo/bar where "products" is the controller, "category" is the action, etc.</p>

<p>But i need to map it to /products/foo/bar. (without "category")</p>

<p>Is it possible? Am i missing something? Help will be highly appreciated. Thank you advance :)</p>

<p>P.S. Sorry for my bad English.</p>

(your English is just fine, no need to apologize!)
You can define a route like this:
```
```
routes.MapRoute("productsByCategory", "products/{category}/{productid}",
  new { controller="products", action="findByCategory" })
```
```
This will match
```
products/foo/bar
```
and call an action looking like this:
```
```
public class ProductsController : Controller
{
   ...

   public ActionResult FindByCategory(string category, string productid)
   {
          ....
   }
}
```
```
does this help?