Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Search Suggestion Based on User-refer


jdMorgan - 3:39 pm on Jun 29, 2008 (gmt 0)


neroliang,

I can't give you an example, but the basic technique would be to use PHP or PERL to examine the server variable HTTP_REFERER, and if the referrer is a search engine, extract the search parameters passed in the referrer (e.g. q=search+string+from+google), call your on-site search function with the words/phrases found in that search string, and then display the results so that the visitor can choose an appropriate page on your site.

Jim


Thread source:: http://www.webmasterworld.com/apache/3683659.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com