Have Visitors Type Non-Existent Page But Still Goes To Home Page?

6 replies
Hi,

This might be a newbie question but any help is appreciated.

If a visitor types in: example.com/blahblah

And "blahblah" doesn't exist, how do I get it (or other mistyped extensions) to be redirected to a page that says "The page you typed in doesn't exist but please go to example.com"

I've seen that on many sites but don't know how that is done. Thank you.
#home #nonexistent #page #type #visitors
  • Profile picture of the author pdrs
    I'm assuming you mean a 404 redirect, if you're using wordpress there are lots of plugins to do it I'm sure (i've never actually worried about it). Just google how to do a 404 redirect and there are lots of guides
    Signature
    RemoteControlHelicopterReviews.(com/net) - Up for sale! No reasonable offer refused. Great branding for a super hot niche!
    {{ DiscussionBoard.errors[7078689].message }}
    • Profile picture of the author solidim
      Oh thanks.

      I meant for a website with normal hosting. Not a wordpress blog.
      {{ DiscussionBoard.errors[7078832].message }}
      • Profile picture of the author IMDealBox
        Originally Posted by solidim View Post

        Oh thanks.

        I meant for a website with normal hosting. Not a wordpress blog.
        This can also be done in the cPanel of your hosting account.
        I think it is called " Custom 404 Pages or something like that!
        Signature
        I.M Hound: Intelligent Business Solutions & I.M News
        {{ DiscussionBoard.errors[7078860].message }}
  • Profile picture of the author Kingfish85
    This should help you. Put it in your .htaccess file.

    RewriteEngine on
    ErrorDocument 404 /whateverpage.php

    Change the "whateverpage.php" to a page that you create, or edit the 404 pages themselves.
    Signature

    |~| VeeroTech Hosting - sales @ veerotech.net
    |~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
    |~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
    |~| Visit us @veerotech Facebook - Twitter - LinkedIn

    {{ DiscussionBoard.errors[7079183].message }}
  • Profile picture of the author goguy
    You need to either edit the custom error page through your hosting panel or you can add the following line to your .htaccess file:

    ErrorDocument 404 /404.php

    Where 404.php is the page you created to be shown to visitors if the page the requested those not exist.
    {{ DiscussionBoard.errors[7079218].message }}

Trending Topics