From an RSS feed of a news website, I get a list of articles published. As this website is using feedburner for RSS, each article has another URL which redirects to the actual URL of an article. I need to get the actual URL and using this URL I'll get the total FB shares and tweets of this article.
Sample RSS feed: http://feeds.hindustantimes.com/HT-HomePage-TopStories. This feed has an article - http://feeds.hindustantimes.com/~r/HT-HomePage-TopStories/~3/Go3sAI0Bv94/story01.htm which redirects to actual URL - http://www.hindustantimes.com/india-news/mumbai/complaint-against-fake-twitter-accnts-of-party-chief-s-kids/article1-1287174.aspx.
Is there any way PHP I can get the actual URL?