Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

On one of the sites that I maintain, I used a link to allow Google Search with the "Search Within Results" (/swr) feature as follows:

http://www.google.fr/swr?q=site:http://bio.m2osw.com&hl=fr&lr=&swrnum=404

That returns a 404 page now however.

I tried it with HTTPS, but the same thing occurs. I also noticed that Google started to use #q=... instead of ?q=.... In any event, is there a simple replacement for the /swr feature?

share|improve this question
4  
You mean that Search Within Results? this was discontinued ages ago and likely hood they pulled the plugged completely recently. –  bybe Jan 19 at 1:01
    
So... you don't know of any replacement? Right now I use a small form instead. I kind of liked sending people to a different page where they could enter their search query. –  Alexis Wilke Jan 19 at 1:19
add comment

1 Answer

up vote 2 down vote accepted

You appear to be using "search within results" to power a site search of your own site. The Google approved way to do that is to use a Google Custom Search Engine.

Custom Search allows you to create a search engine that includes only pages from the sites you choose. In your case, you should choose just your own site. You can then generate code for a search box that you can copy and paste into your site.

There are even several options styling the results page. For example, you can change the colors to resemble your own site. There is now even an option so that the search results pop up in a "light box" on top of your own content such that users never have to leave your site when they do a search.

Google will show ads on custom search. They also would have shown ads on the "search within results" feature that you had been using. With Custom Search, you can use your AdSense ID in Custom Search have Google share the ad revenue with you.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.