mxmissile:Can someone write a quick walk through to enable this? I know all requests including images, css files etc. will get handled by the Asp.Net engine, but this is for an internal non public facing project. Performance is the least of my concern right now.
I've done this using the re-writer found here: http://cheeso.members.winisp.net/IIRF.aspx
I'm too sleepy right now to do a full walk through, but the two tricks are
1) Get the regex right that rewrites the url (I'm not at work right now, so I don't have it, but when I get to work tomorrow I'll post it) from www.mysite.com/Item/Edit/1 to www.mysite.com/Item.mvc/Edit/1
2) Make sure you have both of these routes defined in your RouteCollection. Make sure you have "[controller]/[action]/[id]" and "[controller].mvc/[action]/[id]" in that order.
The reason for the second point up there is as follows:
When you get the regex right to rewrite an incoming URL like "www.mysite.com/Item/Edit/1" it will rewrite it to "www.mysite.com/Item.mvc/Edit/1"
The second of the two routes up there will catch this and route it to your ItemController.
The reason for the second route is for outbound URL's. So when you use something like Html.ActionLink<ItemController>(s => s.Edit(1), "MyLink") it will output the pretty URL of "www.mysite.com/Item/Edit/1"
If this doesn't make a lot of sense (and it might not when I re-read it tomorrow morning
) let me know and I'll post a step by step walk through from our internal wiki.
We've got this all working internally with pretty URL's and all. There is probably a better way, but right now for us, "good enough is ally of the best" 