开发者

Google Custom Search Engine: "messy" query URL

I'm in the process of adding the Google Custom search engine on my blog, LonePlacebo.com, and noticed that the search query url that shows up looks like a mess like so:

http://loneplacebo.com/search-results/?cx=016164296208729675189%3Aqq4uaxnfgew&cof=FORID%3A1开发者_如何学运维1&ie=UTF-8&q=stanford&siteurl=loneplacebo.com%2F

But, when I tried the same CSE in CSS-Tricks, the url is much "cleaner" like so: http://css-tricks.com/search-results/?q=css

Any ideas why the discrepancy?


Csstricks is using the custom search element.

You're still using the iframe option, which is no longer supported. Not sure how much longer it's going to work. iframe deprecated

Log-in to the Google CSE control panel and choose "results only" layout, this way, you can still use the same search box on your home page.

Once you switch, you can remove this: (which makes the "messy" url you speak of)

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜