+ Reply to Thread
Results 1 to 5 of 5

Thread: Custom Error Page

  1. #1
    jdmrace is offline x10Hosting Member jdmrace is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    20

    Custom Error Page

    Can anyone help me make a custom error page with a log?

    I am currently using the .htaccess file to handle redirections:
    Example1: ErrorDocument 404 http://example.com/error/?code=404
    but for some reason it does not work using relative layout such as:
    Example2: ErrorDocument 404 /error/?code=404

    My .htaccess file is located in the www or public_html directories. When I try to access a 404 page while I use example 1 it automatically redirects to the url.

    Is there any way to stop the redirection. I don't want the error to redirect because it will make it harder to trace where the visitor was when the 404 page was encountered. I would like to stay away from referers because I think it is possiable for people to send false or blocked referer.

    Is there any alternative way to have custom error pages with the url unaltered?

  2. #2
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Custom Error Page

    In the cPanel, near the bottom, is a helper that easily lets you create custom error pages; No htaccess or URL mess-ups.
    It is very simple to use.


  3. #3
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: Custom Error Page

    You can usually do this by adding the following code to your .htaccess file :-
    ErrorDocument 404 /location/to/404.html

  4. #4
    jdmrace is offline x10Hosting Member jdmrace is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    20

    Re: Custom Error Page

    Does anyone know how google programmed their error page?
    Example: http://www.google.com/404error.html
    It displays the error message on the nonexistent requested page with the original url without any redirection.

    When I tried using the ErrorDocument 404 (url) it redirects the browser to the url with the error page. I want to find a alternative way to display a error page rather then a redirection to the (url).

  5. #5
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Custom Error Page

    What do you mean by it redirecting? I have never seen an error redirect.
    If you want to customize it easily, there is a helper called "Error Pages" which you can edit the error page with HTML. Then, you can trace where the 404s occurred by going to "Error Log." It works very well and you don't have any redirects. Just try it out.


+ Reply to Thread

Similar Threads

  1. Custom Gaming Graphics for you
    By gamingresource in forum Graphics & Webdesign
    Replies: 1
    Last Post: 02-23-2008, 07:30 AM
  2. Seas2Success - Custom Banner Offer!
    By loveboat in forum Ads & Offers
    Replies: 9
    Last Post: 02-08-2008, 11:34 PM
  3. Custom Error Documents
    By Synkc in forum Feedback and Suggestions
    Replies: 1
    Last Post: 11-27-2007, 12:59 AM
  4. Custom Domain Name
    By halohalo in forum Free Hosting
    Replies: 1
    Last Post: 08-15-2007, 12:35 PM
  5. Custom Built pcs or Bought Pc?
    By disturbedart in forum Crossfire
    Replies: 33
    Last Post: 10-20-2006, 02:55 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
x10hosting free hosting for the masses
dedicated servers