Custom 404 search page help please

Discussion in 'HTML & Website Design' started by SystemOAD, Jun 8, 2011.

  1. #1
    Hi,

    So far I have made my custom 404 page with a couple of different error message depending on how/why the visitor ended up on a 404 page. Now I would like to add a related pages features to the 404 page.

    I would like an auto search feature that posts related pages from my site on the 404 page using the pages title and/or url. So for example you are trying to get to my game server page but end up on the 404 page, you should see a list of pages with the words game servers in the title and/or url (dont mind if its done my url or title, but both would be good).

    Could anyone give me a hand with the code I need to tell the 404 page what pages are relevant and to post them? I can find code for this to be done in wordpress but cant find any php code to use on a standard site using no cms etc.

    Any help would be great, thanks :)
    Nath
     
    SystemOAD, Jun 8, 2011 IP