1

I am using Google Site Search on a web site, and the search form submits to a page containing the appropriate code. I can access this page directly just fine, but whenever I test out the search form, I get a "page not found" error.

I believe this is because both Drupal and Google search use the parameter 'q', has anyone run into this problem and found a workaround?

  • 1
    What is the path that you can access directly and what is the path that gives you 'page not found'? – Jody May 4 '11 at 21:20
  • example.com/search is the page with the google search code. page not found is the same path, example.com/search, but with the google search parameters. – ryne.andal May 4 '11 at 21:22
  • I think there is an alternative parameter Google can use, and that would make it compatible with Drupal, but I don't recall which one is it, at the moment. – kiamlaluno May 4 '11 at 22:46
1

Instead of using q, you can use as_q. The description given from the page I linked is the following:

The as_q parameter provides search terms to check for in a document. This parameter is also commonly used to allow users to specify additional terms to search for within a set of search results.

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.