+ Reply to Thread
Results 1 to 5 of 5

Thread: Edit HTTP 404 help?

  1. #1
    hocheesi is offline x10Hosting Member hocheesi is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    2

    Question Edit HTTP 404 help?

    is there a way to delete/modify the default x10hosting HTTP 404 page?
    using the error pages editor doesnt help, because x10's 404 page overrides the one i created.
    its kinda weird with a different (and more colorful) error page than all the others (eg. 403, which i edited.)
    hocheesi

  2. #2
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Edit HTTP 404 help?

    I have not dealt intensively with error pages, but you should be able to change them in cPanel. but it seems that you have tried that and did not succeed.

    you might also want to try editing the .htaccess file itself. if you need a tutorial: http://www.javascriptkit.com/howto/htaccess2.shtml

  3. #3
    descalzo's Avatar
    descalzo is offline 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: Edit HTTP 404 help?

    Go to File Manager.
    Go to public_html
    Create subdirectory error
    Create new file 404.html.
    Edit 404.html as you want it to appear.
    Save.
    Open .htaccess *
    Add line:

    Code:
    ErrorDocument 404 /error/404.html
    * If you do not see .htaccess, it is probably because you did not enable "hidden files".
    Close FileManager.
    Click " reset all interface settings " at bottom of cPanel
    Open FileManager. You should get a Popup. Check "Show Hidden Files" and "Don't show this again"
    You should see .htaccess. If not, create it.

  4. #4
    oraya68 is offline x10Hosting Member oraya68 is an unknown quantity at this point
    Join Date
    Dec 2009
    Location
    Beautiful Cornwall in England
    Posts
    27

    Re: Edit HTTP 404 help?

    Quote Originally Posted by hocheesi View Post
    is there a way to delete/modify the default x10hosting HTTP 404 page?
    using the error pages editor doesnt help, because x10's 404 page overrides the one i created.
    its kinda weird with a different (and more colorful) error page than all the others (eg. 403, which i edited.)
    hocheesi
    Hi it's very simple you just need to point to it in you .htaccess file. Ok here's a little step by step, if you get any problems email me.

    How to make a Custom 404 Error Page:
    Here is how it's done!
    • Make and upload a webpage called 404page.html

    • Open notepad.

    • Type only the text below into a the document, changing the address part to point to the path of your 404page.html file.

    • ErrorDocument 404 http://www.yoursiteinhere.com/404page.html

    • Save the file as .htaccess.txt
    • upload to the root of the site and change file name to .htaccess so you are removing the .txt extention and only have the .htaccess part. It's easier to do it this way as otherwise on you pc you will have to go into file settings and enable view hidden files.

    .


    Any problems let me know!
    Last edited by oraya68; 12-10-2009 at 04:00 PM. Reason: typo

  5. #5
    descalzo's Avatar
    descalzo is offline 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: Edit HTTP 404 help?

    Quote Originally Posted by oraya68 View Post
    How to make a Custom 404 Error Page:
    Bad advice.
    What if the current .htaccess has important rules? Just discard them and replace with a one line .htaccess?
    Also,
    Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as http in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications, the most important being that the client will not receive the original error status code, but instead will receive a redirect status code. This in turn can confuse web robots and other clients which try to determine if a URL is valid using the status code.
    using the full web address rather than a file path for a local error page is not recommended.
    Last edited by descalzo; 12-10-2009 at 05:17 PM.

+ Reply to Thread

Similar Threads

  1. Edit FLV, Posible?
    By killerkaos in forum Graphics & Webdesign
    Replies: 3
    Last Post: 11-07-2009, 03:19 PM
  2. Uploading files with HTTP -> error 406 : Not Acceptable
    By similitux in forum Free Hosting
    Replies: 1
    Last Post: 08-18-2008, 02:38 PM
  3. Server Problems
    By coconut999 in forum Free Hosting
    Replies: 4
    Last Post: 07-19-2008, 11:53 AM
  4. Unable to access via FTP or http:
    By Omala in forum Free Hosting
    Replies: 1
    Last Post: 04-14-2008, 02:25 AM
  5. Cannot edit in Front Page
    By katyW in forum Free Hosting
    Replies: 9
    Last Post: 05-26-2005, 06:34 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