I\'m trying to get url links to those bit.ly redirects. I\'ve tried to open bit.ly links with file_get_contents but it already gets content from redirected site
file_get_contents
Use curl, which will not follow redirects by default.