301从asp.net中的数据库重定向动态URL
我有成千上万的链接需要重定向到新的网址使用301永久重定向。我在数据库表中有所有这些URL。我想知道应该在哪里这些网址应该只加载一次。并可用于301永久重定向 示例URL: 我正在使用VS 2013 Framework 4.0301从asp.net中的数据库重定向动态URL,asp.net,url-routing,http-status-code-301,global-asax,Asp.net,Url Routing,Http Status Code 301,Global Asax,我有成千上万的链接需要重定向到新的网址使用301永久重定向。我在数据库表中有所有这些URL。我想知道应该在哪里这些网址应该只加载一次。并可用于301永久重定向 示例URL: 我正在使用VS 2013 Framework 4.0 注意:数据必须只加载一次到会话中或在第一次应用程序请求期间加载。将应用程序启动时数据库中的值加载到静态字典中,然后在BeginRequest中检查请求的URL以查看其密钥是否存在于重定向字典中,如果存在,则执行context.Response.RedirectPerman
注意:数据必须只加载一次到会话中或在第一次应用程序请求期间加载。将应用程序启动时数据库中的值加载到静态字典中,然后在BeginRequest中检查请求的URL以查看其密钥是否存在于重定向字典中,如果存在,则执行context.Response.RedirectPermanentvalue
*RequestForURL* *301Redirect*
why-me/onboard-experience/food-and-drink-for-all-tastes/family-casual/-> /why-me/family-test/
why-me/onboard-experience/food-and-drink-for-all-tastes/room-service/-> /why-me/onboard-experience/food-for-all-tastes/
why-me/onboard-experience/food-and-drink-for-all-tastes/specialist-restaurants/-> /why-me/onboard-experience/food-for-all-tastes/
why-me/onboard-experience/food-for-all-tastes/me-deals/-> /why-me/onboard-experience/
why-me/onboard-experience/food-for-all-tastes/me-deals/wowsale2013.aspx /why-me/onboard-experience/
why-me/onboard-experience/food-for-all-tastes/dining-packages/-> /why-me/onboard-experience/food-for-all-tastes/
why-me/onboard-experience/food-for-all-tastes/drinks-packages/-> /why-me/onboard-experience/dazzling-entertainment/drink-packages/
why-me/onboard-experience/food-for-all-tastes/family-casual/-> /why-me/onboard-experience/food-for-all-tastes/
why-me/onboard-experience/food-for-all-tastes/room-service/ /why-me/onboard-experience/food-for-all-tastes/
why-me/onboard-experience/food-for-all-tastes/speciality-dining/-> /why-me/onboard-experience/food-for-all-tastes/
why-me/onboard-experience/types-of-me/-> /why-me/onboard-experience/