WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 404 page and customization of this (7 posts)

  1. jadr
    Member
    Posted 8 years ago #

    Hi

    I'd like to change my 404 page on WP2. When users look forsomehting not there, they get the 404. Is there any way I can capture the word, url og ??? they used to get to (search) my site ?

    I'd like to end up with something like this:

    "I'm sorry, you searched for <SUBJECT> or <URL>, but unfortunately .. bla bla bla"

    And... I'd also like to add a presearch on the 404 page. So that If they searched for http://www.boyer-draeby.dk/SUBJECT, I'd presearch and present a search on "SUBJECT" on my 404 -page.

    How much information can I get from users request when they hit my 404-page ?

    Cheers
    Jakob
    http://www.boyer-draeby.dk

  2. Phoat
    Member
    Posted 8 years ago #

    You can edit the file 404.php in your themes directory to customize the look of the 404 page.

    As far as the presearch goes, I really don't know how you would implement it. Maybe someone else can help with that.

  3. jadr
    Member
    Posted 8 years ago #

    Mmmm, first of all, I'd need to catch the word or url or whatever made them hit my 404. Any ideas on how to do this ?

    Rgds
    Jakob

    Http://www.rejseoversigt.dk

  4. jadr
    Member
    Posted 8 years ago #

    No one ?

  5. Austin Matzko
    Member
    Posted 8 years ago #

    $HTTP_SERVER_VARS['REQUEST_URI'] will give you the page requested

  6. jadr
    Member
    Posted 8 years ago #

    will try, be back later with results

  7. jadr
    Member
    Posted 8 years ago #

    It works, thanx !!!
    Demo it here: http://www.boyer-draeby.dk/sms

    rgds
    >jomla at http://jomla.dk&lt;
    web: http://www.jomla.dk

Topic Closed

This topic has been closed to new replies.

About this Topic