Announcement

Collapse
No announcement yet.

Creating a 404.html Page

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

    Creating a 404.html Page

    Hi,

    I would like to create a 404.html page for my site in order to add it to the additional files for upload or create within the brochure pages.

    Has anyone done this before and how can it easily be achieved.

    I don't really want to include the sitemap page as has been previously suggested but simply want the page to look like part of the normal site with the menu and adverts etc but with a text content explaining that the page they are looking for has moved and they can use the menu navigation or search to find what they want.

    I'm quite new at this and would appreciate any advice.

    Thanks



    David

    #2
    Hi David,

    It's quite simple to do. It's effectively a 2 step process:

    1. Create a brochure page and enter whatever text you want showing.

    2. From your hosting control panel access the .htaccess file and add the following line:
    ErrorDocument 404 http://www.YourDomainName/acatalog/NotFound.html or whatever you've called it

    That's it.

    HTH
    Last edited by SpikyMikey; 06-Oct-2007, 12:06 PM. Reason: highlighted code required in red

    Comment


      #3
      Originally posted by SpikyMikey
      Hi David,

      It's quite simple to do. It's effectively a 2 step process:

      1. Create a brochure page and enter whatever text you want showing.

      2. From your hosting control panel access the .htaccess file and add the following line:
      ErrorDocument 404 http://www.YourDomainName/acatalog/NotFound.html or whatever you've called it

      That's it.

      HTH
      That's a great help and as you said, seems quite simple.

      The only thing I'm having a problem with is that the new Brochure page is now showing in the Menu. Do I have to hide on website? And if so, will the page still show up when needed?

      Thanks again


      David

      Comment


        #4
        The Advanced user guide shows you how to hide pages in the menu.
        Peblaco

        Comment


          #5
          More Info Needed

          Originally posted by SpikyMikey
          Hi David,

          It's quite simple to do. It's effectively a 2 step process:

          1. Create a brochure page and enter whatever text you want showing.

          2. From your hosting control panel access the .htaccess file and add the following line:
          ErrorDocument 404 http://www.YourDomainName/acatalog/NotFound.html or whatever you've called it

          That's it.

          HTH
          Hi. I've done everything on this process and peblaco's hint but my Actinic Hosting server does not appear to contain a .htaccess file. Is this something I should create?

          Comment


            #6
            If need be, your pc and/or host may not show your htaccess file when named correctly.

            I recommend saving it to your pc WITHOUT the . and when you have uploaded it to your root folder then add the . to the filename.

            Regards
            Daren
            Affordable solutions for busy professionals.
            Website Maintenance | UK Web Hosting

            Comment


              #7
              Also if you are with 1and1 then a custom error page needs to be at the same level as the .htaccess file.

              ie such as this:
              ErrorDocument 400 /Bad_Request.html
              ErrorDocument 401 /Unauthorized.html
              ErrorDocument 403 /Forbidden.html
              ErrorDocument 404 /Page_Not_Found.html
              ErrorDocument 500 /Internal_Server_Error.html

              Comment


                #8
                Hi,

                I have just picked up this thread as I am having difficulty getting a custom 404 page to work on my server.

                I have created a .htaccess file containing
                ErrorDocument 404 /404page.html

                I have created a page called 404page.html

                I have put both of these files in the root directory /

                Here is the structure on the server:

                /
                /documents
                /documents/acatalog
                /documents/acatalog/DD
                /documents/cgi-bin
                /logs
                /reports
                /users
                /public_html

                When I go to a bad link I get this message in FF:
                Not Found

                The requested URL /acatalog/badlink.html was not found on this server.
                Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
                Apache/2.0.52 (CentOS) Server at www.competitiveheatingsupplies.co.uk
                Regards,

                Keith

                Central Heating Supplies | Life Insurance Quotes | Be Modern Orlando Electric Fires | Grant Boilers | Honeywell Heating Controls | Worcester Bosch Oil Boilers | Oil Boilers

                Comment


                  #9
                  Originally posted by Runner
                  Hi,

                  I have just picked up this thread as I am having difficulty getting a custom 404 page to work on my server.

                  I have created a .htaccess file containing
                  ErrorDocument 404 /404page.html

                  I have created a page called 404page.html

                  I have put both of these files in the root directory /

                  Here is the structure on the server:

                  /
                  /documents
                  /documents/acatalog
                  /documents/acatalog/DD
                  /documents/cgi-bin
                  /logs
                  /reports
                  /users
                  /public_html

                  When I go to a bad link I get this message in FF:
                  Not Found

                  The requested URL /acatalog/badlink.html was not found on this server.
                  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
                  Apache/2.0.52 (CentOS) Server at www.competitiveheatingsupplies.co.uk
                  Hi Keith,

                  When I did this I uploaded the .htaccess file through an ftp client independently of actinic and put it in the root folder (in my case "httpdocs") manually.

                  The contents of the file I use is...

                  ErrorDocument 404 http://www.enjoymuzic.com/acatalog/404.html

                  The error page itself was simply created as a brochure page within the actinic store and uploads with the other pages.

                  Hope some of this info may help.

                  David
                  www.enjoymuzic.com

                  Comment


                    #10
                    Originally posted by Runner
                    Hi,

                    I have just picked up this thread as I am having difficulty getting a custom 404 page to work on my server.

                    I have created a .htaccess file containing
                    ErrorDocument 404 /404page.html

                    I have created a page called 404page.html

                    I have put both of these files in the root directory /

                    Here is the structure on the server:

                    /
                    /documents
                    /documents/acatalog
                    /documents/acatalog/DD
                    /documents/cgi-bin
                    /logs
                    /reports
                    /users
                    /public_html

                    When I go to a bad link I get this message in FF:
                    Not Found

                    The requested URL /acatalog/badlink.html was not found on this server.
                    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
                    Apache/2.0.52 (CentOS) Server at www.competitiveheatingsupplies.co.uk
                    Another look makes me wonder if your 404page.html should be moved into the folder called acatalog!

                    Give it a go.


                    David
                    www.enjoymuzic.com

                    Comment


                      #11
                      Hi David,

                      Thank you. That seemed to work. Here is what I finally did:

                      .htaccess file in the root directory containing:
                      ErrorDocument 404 http://www.competitiveheatingsupplie...g/404page.html

                      with the 404page.html in the acatalog folder.

                      I think I will also take your advice and create the page as a brochure page.

                      Thanks again.
                      Regards,

                      Keith

                      Central Heating Supplies | Life Insurance Quotes | Be Modern Orlando Electric Fires | Grant Boilers | Honeywell Heating Controls | Worcester Bosch Oil Boilers | Oil Boilers

                      Comment

                      Working...
                      X