I have and MVC umbraco application with a MVC form working on most of my pages. The form is on the bottom of every page. Now I have 3 pages on my site that are using a RewritePath because I am using swedish characters in my urls. The official url to the visitor ishttp://www.k2search.se/rekryteringsföretag/ but the real url inside the app is http://www.k2search.se/rekryteringsfoeretag/ . This is solved with the function RewritePath and a Redirect as well. This is built with the old webforms technic and that is going to be changed very soon. In my development this is already in MVC. But this Redirect and RewritePath is stopping my MVC form to execute properly. How shall this Redirect and RewritePath be done in the MVC world?
How does it work with adding a routes.MapRoute routine in an umbraco project. I dont want to rebuild any umbraco core dll but just add in a few speciel redirect rules to make my app with perfect urls
routes.MapRoute("Slug",// Route name"pages/{slug}",// URL with parametersnew{controller="Home",action="Content"}// Parameter defaults);
MVC form posting and RewritePath function?
I have and MVC umbraco application with a MVC form working on most of my pages. The form is on the bottom of every page. Now I have 3 pages on my site that are using a RewritePath because I am using swedish characters in my urls. The official url to the visitor ishttp://www.k2search.se/rekryteringsföretag/ but the real url inside the app is http://www.k2search.se/rekryteringsfoeretag/ . This is solved with the function RewritePath and a Redirect as well. This is built with the old webforms technic and that is going to be changed very soon. In my development this is already in MVC. But this Redirect and RewritePath is stopping my MVC form to execute properly. How shall this Redirect and RewritePath be done in the MVC world?
How does it work with adding a routes.MapRoute routine in an umbraco project. I dont want to rebuild any umbraco core dll but just add in a few speciel redirect rules to make my app with perfect urls
routes.MapRoute("Slug",// Route name"pages/{slug}",// URL with parametersnew{controller="Home",action="Content"}// Parameter defaults);
is working on a reply...