重定向到找不到网页页面,如果在MVC存在的简化版,网址 [英] Redirect to page not found page if the url does't exist in mVC
问题描述
我需要如果URL doent存在用户重定向到网页找不到网页。
如果用户复制网址并贴在rbowser,页面显示页面没有找到方法。
I need to redirect the user to page not found page if the url doent exist. if the user copy the url and paste it on the rbowser, the page shows page not found method.
在此,我需要将用户重定向到页面没有找到页
in this i need to redirect the user to page not found page
推荐答案
显示方式:
<一个href=\"http://stackoverflow.com/questions/619895/how-can-i-properly-handle-404s-in-asp-net-mvc\">http://stackoverflow.com/questions/619895/how-can-i-properly-handle-404s-in-asp-net-mvc
这是指这样的:
<一个href=\"http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx\" rel=\"nofollow\">http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx
这篇关于重定向到找不到网页页面,如果在MVC存在的简化版,网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!