Well basically this is what i want to do : When a User visits http://mydomain.com/file.html ,i want these to happen : 1. Redirect to location1 if person is already logged-in to his facebook account. OR 2. Redirect to location2 if person is not logged-n to his facebook account. Need this simple thing to be done. If u can do it post here.