Alternative 404 page?

by Ewan Lumsden Banned
5 replies
  • WEB DESIGN
  • |
How do you set a page up so that any 404 or link to a directory that doesn't exist shows up a page on the site saying a message like "You've taken a wrong turn, click here to return to the main page" etc... instead of just a blank page.

Thanks!
#404 #alternative #page
  • Profile picture of the author David V
    Originally Posted by Ewan Lumsden View Post

    How do you set a page up so that any 404 or link to a directory that doesn't exist shows up a page on the site saying a message like "You've taken a wrong turn, click here to return to the main page" etc... instead of just a blank page.

    Thanks!
    What kind of website? (wordpress, joomla, html, php, etc....)
    {{ DiscussionBoard.errors[7617442].message }}
  • Profile picture of the author dvduval
    Here is a tutorial for doing that
    How to Set Up a Custom 404 File Not Found Page on your Website (thesitewizard.com)
    Usually it is a matter of an htaccess entry and setting up the actual page.
    Signature
    It is okay to contact me! I have been developing software since 1999, creating many popular products like phpLD.
    {{ DiscussionBoard.errors[7617702].message }}
  • Profile picture of the author David V
    You can use a custom template for the 404 error page.
    Maybe your theme has one? you can check by looking in the theme root files.
    It's called 404.php
    It will require some very minor editing/coding.
    You still need to add to the .htaccess file as dvduval mentioned.

    There are many plugins that will handle this, here's one:
    404 plugin
    and another that can redirect to a specified page for help...

    and how to create a 404.php for wordpress
    {{ DiscussionBoard.errors[7622621].message }}
    • Profile picture of the author Ewan Lumsden
      Banned
      Originally Posted by David V View Post

      You can use a custom template for the 404 error page.
      Maybe your theme has one? you can check by looking in the theme root files.
      It's called 404.php
      It will require some very minor editing/coding.
      You still need to add to the .htaccess file as dvduval mentioned.

      There are many plugins that will handle this, here's one:
      404 plugin
      and another that can redirect to a specified page for help...

      and how to create a 404.php for wordpress
      Perfect, thanks!
      {{ DiscussionBoard.errors[7628738].message }}

Trending Topics