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:


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?

  • 4
    You mean that Search Within Results? this was discontinued ages ago and likely hood they pulled the plugged completely recently. Jan 19 '14 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. Jan 19 '14 at 1:19

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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