Edit HTTP 404 help?

hocheesi

New Member
Messages
3
Reaction score
0
Points
1
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
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
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
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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.
 

oraya68

New Member
Messages
27
Reaction score
0
Points
0
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.

[FONT=Arial, Helvetica, sans-serif]How to make a Custom 404 Error Page:[/FONT]
[FONT=Arial, Helvetica, sans-serif]Here is how it's done![/FONT]
  • [FONT=Arial, Helvetica, sans-serif] Make and upload a webpage called 404page.html

    [/FONT]
  • [FONT=Arial, Helvetica, sans-serif] Open notepad.

    [/FONT]
  • [FONT=Arial, Helvetica, sans-serif] Type only the text below into a the document, changing the address part to point to the path of your 404page.html file.
    [/FONT]
  • [FONT=Arial, Helvetica, sans-serif]ErrorDocument 404 http://www.yoursiteinhere.com/404page.html

    [/FONT]
  • [FONT=Arial, Helvetica, sans-serif] Save the file as .htaccess.txt[/FONT]
  • [FONT=Arial, Helvetica, sans-serif]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.[/FONT][FONT=Arial, Helvetica, sans-serif]

    [/FONT]
[FONT=Arial, Helvetica, sans-serif].


Any problems let me know!
[/FONT]
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
[FONT=Arial, Helvetica, sans-serif]How to make a Custom 404 Error Page:[/FONT]

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:
Top