2011-08-27 53 views
0

我正在加入我的博客LonePlacebo.com上的Google自定義搜索引擎,並注意到顯示的搜索查詢網址看起來像這樣一團糟:Google Custom Search Engine:「messy」query URL

http://loneplacebo.com/search-results/?cx=016164296208729675189%3Aqq4uaxnfgew&cof=FORID%3A11&ie=UTF-8&q=stanford&siteurl=loneplacebo.com%2F

但是,當我嘗試同樣的CSE在CSS-技巧,網址是多少 「乾淨」,像這樣: http://css-tricks.com/search-results/?q=css

任何想法,爲什麼這種差異?

回答

1

Csstricks正在使用自定義搜索元素。

您仍在使用不再支持的iframe選項。不知道它會工作多久。 iframe deprecated

登錄Google CSE控制面板並選擇「僅限結果」佈局,這樣,您仍然可以在您的主頁上使用相同的搜索框。

切換後,可以刪除此:(這使得「雜亂」的網址,你說的)

<input type="hidden" name="cx" value="016164296208729675189:qq4uaxnfgew"/> 
<input type="hidden" name="cof" value="FORID:11"/> 
<input type="hidden" name="ie" value="UTF-8"/>