I have thousands of links which need to be redirect
to new URL
using 301 Permanent Redirect
. I have all these urls in the Database
table. I would like to know where should be these URLs should be loaded (only once). And can be used for 301 permanent redirect.
Sample url:
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/
Note: I am using VS 2019 and .NET Core 3.1
Please write example of code for me...