Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: 404 Error Page isn't working

  1. #11
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: 404 Error Page isn't working

    Quote Originally Posted by gcstuff View Post
    The 403 forbidden works with the same code.

    Code:
    <HTML>
    REDIRECTING
    <HEAD>
    <META HTTP-EQUIV="refresh" CONTENT="5;URL=http://www.geocachingstuff.com/">
    </HEAD>
    </HTML>
    .htaccess looks like this:

    Code:
    ErrorDocument 404 404.shtml
    Paste this code in 404.shtml and see if it work
    Code:
    The Page You are Looking for <!--#echo var="REQUEST_URI" -->does not exsist..
    Please Check it again...<br />
    
    <!--#echo var="REMOTE_ADDR" --><br />
    <!--#echo var="HTTP_HOST" --><br />
    <!--#echo var="HTTP_USER_AGENT" -->
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  2. #12
    gcstuff is offline x10Hosting Member gcstuff is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    20

    Re: 404 Error Page isn't working

    http://geocachingstuff.com/404.shtml

    I used the code you suggested. I also used the .htaccess code aswell:
    ErrorDocument 404 404.shtml

  3. #13
    descalzo's Avatar
    descalzo is online now Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: 404 Error Page isn't working

    1. Use

    Code:
    ErrorDocument 404  /404.shtml
    2. Unless you are going to use SSI commands (like Zubair's code does), don't use .shtml as an extension. Use .html
    Nothing is always absolutely so.

  4. #14
    gcstuff is offline x10Hosting Member gcstuff is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    20

    Re: 404 Error Page isn't working

    I was using .shtml since that was the default. Under advanced tools, Error Pages on Cpanel

    I will use html and see if that works

  5. #15
    descalzo's Avatar
    descalzo is online now Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: 404 Error Page isn't working

    Quote Originally Posted by gcstuff

    I will use html and see if that works
    If you don't change the .htaccess entry so there is a backslash in front of the filename, it won't work.
    The .shtml change is because a) shtml pages are a potential security risk and b) they have to be parsed by the server every time they are sent, a waste of server resources if you are not going to use SSI.
    Nothing is always absolutely so.

  6. #16
    gcstuff is offline x10Hosting Member gcstuff is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    20

    Re: 404 Error Page isn't working

    Thanks! I believe it works now!

  7. #17
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: 404 Error Page isn't working

    Problem Solved.

    ***Thread Closed***
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

Closed Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: 03-15-2008, 04:54 PM
  2. suspension page and check page error
    By Hetic06 in forum Free Hosting
    Replies: 5
    Last Post: 10-12-2006, 04:46 PM
  3. Is the ad on this page working?
    By SEŅOR in forum Free Hosting
    Replies: 3
    Last Post: 01-11-2006, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers