I am making a custom 404 page for a large website that is being redesigned. There are about 40 high-usage pages that can be marked by customers, and our new site structure will violate these bookmarks.
On my 404 page, I want to warn them of a new URL if they try to go to one of these high-usage pages through their old URL. So, I have a couple of dynamic controls on page 404, one for "did-you-want-this?". type of dialog and the other is the if-so-go-here (and refresh your bookmark) dialog box. This is the easy part.
To suggest a new URL, I am looking at the requested URL. If it has keywords, Iām going to propose a new URL based on this, and I will take away the relevant needs ... and if so ... suggestions at 404 as indicated above.
So, I want to keep these 40-ish key / value pairs (keyword / new URL pairs) in the data structure, and I'm not sure what would be better. Dictionary? IDictionary? What is the difference and what is more appropriate?
Or am I completely mistaken?
Thank you for your time.
source
share