Alternatively you could append a GET parameter to your url (if you don't mind that), and check for it in your PHP script. Something like:
http://example.com/11/right-slug?corrected-from=http://example.com/11/wrong-slug
On the same note you can use the session or cookies, but you must take care to remove them after detection.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…