我们必须做些什么才能让Google的综合搜索显示出我们的域名的自定义搜索:

例如,如果我们使用综合栏并键入s- take k-v-e-r-f-l-o-w-.-c-o-m-SPACE,例如,在方框中键入asd,我们将直接进入https://stackoverflow.com/search?q=asd。
我注意到这种行为与维基百科不同(维基百科带我们去http://en.wikipedia.org/w/index.php?title=Special:Search&search=asd)
这种行为在youtube上也是不同的(带我们去source=opensearch)
当然,并不是所有的域都有这种行为,尝试一下:y-.-c-o-m-SPACE什么都不做。
我如何指导谷歌的综合搜索方式来搜索我的域名?
发布于 2011-07-19 11:18:45
这是每一页的<head>中的一行:
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">它所指向的文件:
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Stack Overflow</ShortName>
<Description>Search Stack Overflow: Q&A for professional and enthusiast programmers</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://sstatic.net/stackoverflow/img/favicon.ico</Image>
<Url type="text/html" method="get" template="http://stackoverflow.com/search?q={searchTerms}"></Url>
</OpenSearchDescription>它被称为OpenSearch,这是一种标准的方式来指定如何搜索您的网站。有关规格,请参见opensearch.org。
发布于 2011-07-19 11:21:31
https://stackoverflow.com/questions/6746256
复制相似问题