I'm implementing a slug system for my website at the moment. I plan to redirect invalid slugs to the correct on that is stored in the database. E.g.
http://example.com/11/wrong-slug
Hit db, check if 11's slug is wrong-slug if not do 301 redirect
http://example.com/11/right-slug
Detect 301 and inform user that they followed an invalid link
Is it possible to identify the 301 redirect preferably using PHP so I can ask the user to update there bookmark etc.
Thanks, Jamie.