Results 1 to 12 of 12

Thread: Custom Error Page
      
   

  1. #1
    adamrock is offline Sergeant
    Join Date
    Jul 2008
    Posts
    25

    Question Custom Error Page

    i have made my my own custom error page but when ppl acounter an 404 error i want it to redirct to my custom error page how do i do that

  2. #2
    Vasili's Avatar
    Vasili is offline Moderator
    Join Date
    Mar 2006
    Posts
    13,611

    Arrow Re: Custom Error Page

    Top of every Forum page, you'll see "SEARCH" and you click that and then enter "404" or "redirect" or even in Advanced Search "error page" as Key Word to find various threads and methods....
    . VodaWebs....Luxury Group
    * Success Is Potential Realized *

  3. #3
    adamrock is offline Sergeant
    Join Date
    Jul 2008
    Posts
    25

    Default Re: Custom Error Page

    i found nothing


    The following errors occurred with your search:
    1. Sorry - no matches. Please try some different terms. The following words are either very common, too long, or too short and were not included in your search : 404

  4. #4
    CarbonTerry's Avatar
    CarbonTerry is offline Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default Re: Custom Error Page

    Custom error page search result. There is more than one way.
    CarbonTerry
    Semper Fi
    Still green...still mean......just not as lean

    Red Hawk Archery
    Zone 5 Photo
    My USMC

  5. #5
    karenwms63's Avatar
    karenwms63 is offline Colonel
    Join Date
    Feb 2008
    Location
    Poplar Bluff, MO
    Posts
    865

    Default Re: Custom Error Page

    I have struggled with this and having the newer cpanel and building with bv, I have found this to be the easiest way....

    First...Create a page to match your site (template, navigation, etc.) Put the message...HTTP 404 - File not found...and your message on the page. Save page as 404 and then publish.

    Note:
    It's also a good idea to add the code <meta name="robots" content="noindex"> to the <head> section of your 404 page, so that search engine robots don't add it to their indexes.
    Also...do not use any meta keywords on this page.

    Then...Go to page on browser. View source. Save as 404.txt. Right click>select all>copy.

    Then...Go into cpanel>error pages>edit 404
    copy 404.txt into the box. Scroll down and save.

    Then...Go to Blue FTP and delete 404 page you published. Or you could leave it there, just don't link to it.

    I made my error page immediately after making my index page so that any links that don't work show the 404 error and a blurb about the site having some pages still under construction.

    Good Luck

    I should say that I have tried all the different methods that I could find on this forum (at least 3 different ways) and this method is by far the easiest.
    Karen Williams
    Your Belief is Your Reality

  6. #6
    CarbonTerry's Avatar
    CarbonTerry is offline Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default Re: Custom Error Page

    Karen,
    Using your method,mwhich is similar to mine, you do not have to publish the page. Merely preview it and "View Source" copy the text and:
    "Then...Go into cpanel>error pages>edit 404
    copy 404.txt into the box. Scroll down and save."
    You do not have anything to delete.
    Of course for an Addon domain your method will not work as there is no error page folder unless you create one.
    CarbonTerry
    Semper Fi
    Still green...still mean......just not as lean

    Red Hawk Archery
    Zone 5 Photo
    My USMC

  7. #7
    karenwms63's Avatar
    karenwms63 is offline Colonel
    Join Date
    Feb 2008
    Location
    Poplar Bluff, MO
    Posts
    865

    Default Re: Custom Error Page

    OOOOOh! Thanks sooooo much Terry....good things to know and learn...

    Thanks for the heads up for when I do add the add ons...
    Karen Williams
    Your Belief is Your Reality

  8. #8
    adamrock is offline Sergeant
    Join Date
    Jul 2008
    Posts
    25

    Default Re: Custom Error Page

    ok i ts working noe heres my custom 404 adam-khimji.com/gfhfhg

  9. #9
    CarbonTerry's Avatar
    CarbonTerry is offline Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default Re: Custom Error Page

    Good Work!! I suggest reducing the size of the Error 404 and move the "Something's not right. Wouldn't you agree? Don't get frustrated. Let's simply start back at the beginning" to directly under the 404 to be seen more easily.
    CarbonTerry
    Semper Fi
    Still green...still mean......just not as lean

    Red Hawk Archery
    Zone 5 Photo
    My USMC

  10. #10
    Alien Dude's Avatar
    Alien Dude is offline Lieutenant Colonel
    Join Date
    Apr 2008
    Location
    The Dark Side
    Posts
    562

    Default Re: Custom Error Page

    One or two things to remember when doing a custom error page.

    1/ when using images on your error pages it helps that before saving it in cpanel, to edit the html code and add a / before all your images so this <img src="Connected.png" becomes this <img src="/Connected.png this is so if you use folders to show some different content like a forum the images will show up when the page is brought up.
    2/ make use of the error buttons in the error page set up in cpanel the Requested URL one is good for showing the viewer what they typed in.
    when added in the right place can be quite effective.
    As seen HERE

  11. #11
    CarbonTerry's Avatar
    CarbonTerry is offline Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default Re: Custom Error Page

    Thank you for the tip on using the code for other buttons. I have started that process now.
    CarbonTerry
    Semper Fi
    Still green...still mean......just not as lean

    Red Hawk Archery
    Zone 5 Photo
    My USMC

  12. #12
    karenwms63's Avatar
    karenwms63 is offline Colonel
    Join Date
    Feb 2008
    Location
    Poplar Bluff, MO
    Posts
    865

    Default Re: Custom Error Page

    Thanks, Dude!
    Karen Williams
    Your Belief is Your Reality

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49