WordPress.org

Ready to get started?Download WordPress

Forums

Put Search results in 404 Page (1 post)

  1. jwilliams
    Member
    Posted 6 years ago #

    Hello,

    I would like the following behaviour from my wordpress, and am unsure how to attain it:

    If I go to http://domain.com/some_phrase, a file that does not exist, I would like the resulting 404 page to read:

    404 file not found.

    if ( http://domain.com/?s=some_phrase has results):
    Search results for some_phrase:
    LIST OF RESULTS

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags