Motor de búsqueda personalizado de Google: URL de consulta "desordenada"

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%3A11&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?

preguntado el 27 de agosto de 11 a las 23:08

1 Respuestas

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"/>

Respondido 23 Oct 11, 22:10

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.