dongsanhu4784 2011-11-20 04:44
浏览 26
已采纳

知道网站如何动态地在他们的标题/网址中捕获谷歌搜索关键词吗?

To be more specific let me give an example : If I search a keyword "rankog" on google I get the website rankog.com in the search result, but in the google search results i find some results like (a)www.markosweb.com/www/rankog.com/ and (b)www.tracedomain.com/rankog.com, I know these are some seo tools which give domain information.

My question in 1 line is how such websites (a and b) capture the search terms in their title/url?.

If I want to do the same thing - Capture a search term in google on the title/url of my page how should I do it; say I have 1000 keywords and I want to capture them in my page url, as done in (a) and (b) making 1000 pages is not the solution i guess. How do these website work and capture 1000's of keyword in their url, title?

  • 写回答

1条回答 默认 最新

  • duanhuanbo5225 2011-11-20 04:46
    关注

    This is done by parsing the referrer URL. Most browsers will send the prior URL in their header. You can parse this, and figure out what the search terms were.

    $_SERVER['HTTP_REFERER'];
    

    http://php.net/manual/en/reserved.variables.server.php

    Now, getting your page indexed by Google is a whole 'nother story. You can sniff for their user-agent and dynamically create a bunch of fake pages, but if you do that, everyone will hate you and won't spend much time on your sites anyway.

    If you want your site to show up in Google listings, the best way to do that is to have great content that others will link to.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向