how to remove /umbraco/surface/ from URL?

こ雲淡風輕ζ 提交于 2019-12-19 11:26:32

问题


My Umbraco URL has /umbraco/surface/ in them. For example:

http://localhost:50656/umbraco/Surface/HealthInsurance/Application?Pid=26665&Lid=73&Spid=23

http://localhost:50656/umbraco/Surface/HealthInsurance/Results/73

Is it possible to rewrite url for browser display and remove /umbraco/surface/ from it ?

I don't want to break just for browser display make url like one below:

   http://localhost:50656/HealthInsurance/Application?Pid=26665&Lid=73&Spid=23

    http://localhost:50656/HealthInsurance/Results/73

回答1:


You need to set up custom routes in your Umbraco solution.

I can recommend this article on the subject: http://shazwazza.com/post/Custom-MVC-routing-in-Umbraco



来源:https://stackoverflow.com/questions/27369101/how-to-remove-umbraco-surface-from-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!