Tuesday, March 29, 2011

Gotcha of the Day: Google Customer Search Indexes https Content

Tonight, one of my client's discovered an odd issue with his Google Custom Search setup - it was indexing and directing folks to https versions of his page. He doesn't really a need for https, so while the server is listening on port 443 (probably for plesk, right?) sending users over there isn't a good idea.

While Google Custom Search gives you a fair amount of control of which sites get indexed and which don't, I couldn't find an obvious way to tell Google to exclude the https version of the site.

In the end, I used two tips I found floating around the web:

Problem solved, and I learned a multitude of lessons: the inurl: operator rocks, rewrite rules are nearly always the solution and Google Custom Search can magically append a search parameter for you if you ask nicely.

No comments:

Post a Comment