I have a couple Web forms on a site that don't correspond to content objects in the system. So, they're not templates mapped to Page Types, they're just .aspx files sitting in the root of the site.
I'd like to clean up the URLs to these files. Is there an easy way to add one or two URL patterns to EPiServers' URL re-writer? I don't want to re-implement the whole thing -- just add a couple patterns to random Web forms.
The easy way - use the mapping functionality of virtual paths. Turn on the virtualpathmapped provider in web.config and in the mapping section specify source url and destination.
You could also either hook onto the events of the UrlRewriter and do it there - or extend the urlrewriter with your own (that perhaps inherits the current). Not a very clean or nice solution though - and will require a significant amount of error-prone coding.
I have a couple Web forms on a site that don't correspond to content objects in the system. So, they're not templates mapped to Page Types, they're just .aspx files sitting in the root of the site.
I'd like to clean up the URLs to these files. Is there an easy way to add one or two URL patterns to EPiServers' URL re-writer? I don't want to re-implement the whole thing -- just add a couple patterns to random Web forms.