Custom Error Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • adamrock
    Sergeant

    • Jul 2008
    • 25

    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
    http://www.adam-khimji.com
  • Vasili
    Moderator

    • Mar 2006
    • 14683

    #2
    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 *

    Comment

    • adamrock
      Sergeant

      • Jul 2008
      • 25

      #3
      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
      http://www.adam-khimji.com

      Comment

      • CarbonTerry
        Major General

        • Oct 2005
        • 2620

        #4
        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

        Comment

        • karenwms63
          Colonel

          • Feb 2008
          • 865

          #5
          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

          Comment

          • CarbonTerry
            Major General

            • Oct 2005
            • 2620

            #6
            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

            Comment

            • karenwms63
              Colonel

              • Feb 2008
              • 865

              #7
              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

              Comment

              • adamrock
                Sergeant

                • Jul 2008
                • 25

                #8
                Re: Custom Error Page

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

                Comment

                • CarbonTerry
                  Major General

                  • Oct 2005
                  • 2620

                  #9
                  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

                  Comment

                  • Alien Dude
                    Lieutenant Colonel

                    • Apr 2008
                    • 559

                    #10
                    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
                    Alien Dude Solutions

                    Comment

                    • CarbonTerry
                      Major General

                      • Oct 2005
                      • 2620

                      #11
                      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

                      Comment

                      • karenwms63
                        Colonel

                        • Feb 2008
                        • 865

                        #12
                        Re: Custom Error Page

                        Thanks, Dude!
                        Karen Williams
                        Your Belief is Your Reality

                        Comment

                        Working...
                        X