+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 18

Thread: Error Page 404 Tutorial

  1. #1
    Join Date
    May 2008
    Location
    Lincoln, England
    Posts
    281

    Lightbulb Tutorial: Error 404 Page. Very useful ;)

    Getting sick and tired of going to that webblog site when you go to a page that is not there?
    Want a custom error 404 page?
    and you are not a premium member?
    If yes then this tutorial is for you

    1. Iin your htdocs directory create a file called ".htaccess" without the quotes. If you already have an .htaccess file just open it up

    2. In that file put in this code:
    Code:
    ErrorDocument 404 /yourerrorpage.html
    Where it says your error page put the name of the file of the page you wan your users to see if they go to a URL that doesnt exist

    3. While you are in there you may also want to add in:
    Code:
    php_value display_errors on
    This code will show your php errors on your php pages, this is optional

    5. Create a new file which you want the users to see if they visit a URL that isnt in your directory

    6. In that file put whatever you want in it, it might be a good idea to add in a link to your index page and a search box for users to search your site

    7. Save

    8. Test: Go to a website that you know doesnt exist and your error page should come up.

    If you have any problems just post back here and i will help

    Thanks,
    Ian
    Last edited by kazurian; 27-05-2008 at 08:16 PM.

  2. #2
    Join Date
    Mar 2008
    Location
    Working too hard...
    Posts
    779

    Default

    Great tutorial.

    I too, use custom error pages, and that way, you can put your own ads on them, too.
    If you CANNOT access your control panel, you can file a support ticket via:
    http://byethost.com/support.php

    Please Do Not PM Staff Members for support issues, unless told to do so.




    BurkeKnight Enterprises | BurkeKnight's Webmaster Haven
    The Star Trek RPG Site | BK-GTA - Grand Theft Auto

  3. #3
    Join Date
    Apr 2008
    Posts
    50

    Default

    merci

    but when i make anew file called .htaccess my site don't open and redirect to web hosting blog

    plz help me

  4. #4
    Join Date
    May 2008
    Location
    Essex, UK
    Posts
    53

    Default

    Set the permission of your .htaccess file to 644 and it won't redirect.
    Photos of North Cyprus.

    http://north-cyprus.isgreat.org

    My woodworking and woodturning hobby site.

    http://hobbywood.isgreat.org

  5. #5
    Join Date
    Apr 2008
    Location
    England
    Posts
    47

    Default

    Brilliant, ive tried before and never got it to work but i get it now, ty

  6. #6
    Join Date
    Sep 2007
    Location
    In the shadows
    Posts
    1,209

    Default

    buy the way if your 404 page is to small ie will use its default one


  7. #7
    MAKILA Guest

    Default Not working

    'myhomeownershipsolution.com/fake'

    This should take me to the error page,
    my .htaccess file says,

    ErrorDocument 400 /404.htm
    ErrorDocument 403 /404.htm
    ErrorDocument 404 /404.htm
    php_value display_errors on

    And I have a 404.htm page.

    Instead this forwards me to a HORRID looping pop-up.

    Someone help me please!

  8. #8
    Join Date
    Aug 2007
    Location
    United States
    Posts
    10,470

    Default

    When I went to your site, I was redirected to another web host that is not a part of our network, I recommend you discuss this in your host's forums.
    Login or Billing issues? File a support ticket via: http://byethost.com/support.php

    Free domain - Get yours today!


  9. #9
    Join Date
    Feb 2007
    Posts
    539

    Default

    @mtp - I think it's the template that needs modifications...or at least he needs to get rid of that link to the other hosting company.
    Last edited by Pete_HD; 23-07-2008 at 05:39 AM.

  10. #10
    Join Date
    Aug 2007
    Location
    United States
    Posts
    10,470

    Default

    Looking at the domain record I believe you're right except there is one issue, the first ns record is still pointing to the other webhosting firm whereas the others point to ours.

    I believe this may be the issue and if that's the case, MAKILA will have to edit the domain record to remove the record for the previous hosting company before it will actually point to our services.
    Login or Billing issues? File a support ticket via: http://byethost.com/support.php

    Free domain - Get yours today!


+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. only error page appear
    By RNesha in forum Free Hosting General Support
    Replies: 1
    Last Post: 16-02-2009, 05:12 PM
  2. keep on getting 404 error page
    By Darkness568 in forum Free Hosting General Support
    Replies: 4
    Last Post: 31-07-2008, 01:15 AM

Posting Permissions

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