404 Error on Search Results Page

Home Page Forums WP Google Search 404 Error on Search Results Page

This topic contains 3 replies, has 2 voices, and was last updated by  WebshopLogic 2 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)

  • Author

    Posts

  • #7671


    dbw2

    Participant

    I am getting a 404 error on the search results page. It is unfortunately due to the use of ‘s’ as a get variable. ‘s’ is a reserved term which WordPress rejects under certain configurations, but being a reserved term, this cannot be controlled.

    Unfortunately, ‘search’ is also reserved! Perhaps ‘cse’ or ‘gsc’ instead?

    Please let me know if this can be fixed.

    Sincerely,
    Dan

    #7672


    dbw2

    Participant

    Maybe this is controlled by our Google settings? Hmmmm…

    #7686


    dbw2

    Participant

    Yes, nevermind, this was a custom setting for us. Hopefully this can help others seeing 404 errors on the results page. Here is the list of reserved query parameters:

    https://codex.wordpress.org/Reserved_Terms

    #7687


    WebshopLogic

    Keymaster

    Google CSE uses ‘q’ parameter, not ‘s’.

    ‘s’ parameter is used by the standard WordPress search function, which is independent of the Google search.

    Are you sure, that Google search box is inserted on your site?
    Use WP Google Search widget or use [wp_google_searchbox] shortcode to place search box on your site.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Social media & sharing icons powered by UltimatelySocial