I code in vb.net
Currently i have used a Application_BeginRequest to change my criterial based url into something easier for the user to see and type in my global.asax page which uses httpContext.RewritePath. ie, www.domain.com/contactus.aspx points to www.domain.com/pagename.aspx?id=123
However, i am now wanting to make virtual directories, ie, www.domain.com/contactus/ but point it to www.domain.com/pagename.aspx?id=123 using the same httpContext.RewritePath.
I have changed the code to allow to search the database for anything with or without a .aspx, but everythime i key in www.domain.com/contactus/ it comes up with a "page cannot be displayed error"
I know you can use web.config to do the rewrites, however, as it uses a database, could not get it to work.
I hope this explains everything and any help would be very much appriciated.