Monday, May 7, 2012

When you search Google for a KEYWORD and click "I am feeling lucky", you got redirected to this url -

You will be redirected to the first result link for that given KEYWORD.

I am not sure but knowing that first link for a KEYWORD may be useful for Search Engine Optimization or research etc.
Here is how we can get that link using PHP.

//Get the headers
$headers = get_headers("", 1);
//The url for redirect
$url = $headers['Location'];

Ashutosh Kumar

I am A Web Developer, Web Designer And I Love the Computers and Web Technology .


Do Not Spam