Old URL 404, compare URI with external data group file
I was wondering if someone could help me or point me in the correct direction.
I have about 40,000 URL's and growing which need redirecting,
here is an example of a few
Original URL
http://www.xyz.com/event/123/man-in-band
to
http://www.xyz.com/event/98473/man-in-band
or
Original URL
http://www.xyz.com/venue/2347/band-in-park
to
http://www.xyz.com/venue/9383783/band-in-park
I've been told that the original URL will no longer exist and will produce a 404 status
Is it possible to say something like
when HTTP_RESPONSE {
if { [HTTP::status] contains "404"} {
extract end of URI
e.g. "man-in-band"
then search / reference an external data group file, which will hold the 40,000 URL and redirect to URL which has matching end of URI
e.g. "man-in-band"
Also another quick question, where is the best place to store the external data group file and in what format is best for performance ?
I hope this makes sense,
regards