Like the Python URL Fetch API, isn't there any way of getting the final_url in PHP on Google App Engine. Here's how its accessed in Python:
>>> from google.appengine.api import urlfetch
>>> urlfetch.fetch('http://google.com/').final_url
'http://www.google.com/'