Are you sure your content is located at $url1
Not www. $url1 or $url1 . index.html or something?
Basically what I am asking is, if you go to that URL directly in your browser, do you see your link? Is the address bar address the exact same as in your script?
Not saying that's the problem, but it might be.