404 page redirected to x10 hosting's 404 page

Status
Not open for further replies.

Mcarney

New Member
Messages
3
Reaction score
0
Points
0
I created a custom 404 error page for my site, and back when I made it, it worked fine. Recently whenever I go to an incorrect address within my site, all my 404 errors get redirected to this page: http://x10powered.com/errors/404.shtml

Free hosting that doesn't redirect my site's 404 errors was actually one of the selling points for me switching to x10 hosting, so I will be very disappointed if x10 has changed their policy on that.

My site: www.artofmartincarney.com
Try any incorrect page, such as www.artofmartincarney.com/fail

Is there a change that I'm not aware of? Some trick or some account setting I have wrong?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Way I do it.

1. Create subdirectory errors in public_html
2. Create my error pages, 404.html (or 404.php ), 500.html, etc and put them in public_html/errors
3. Open the .htaccess file in public_html
4. Add lines like

ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html
ErrorDocument 404 /errors/404.html

for each error document.

Note: The directory name 'errors' is a personal choice. Nothing magical about the name. Same with the file names. Just easier to keep track.
 

Mcarney

New Member
Messages
3
Reaction score
0
Points
0
Ok I may just be blind...but I don't see a .htaccess file. Maybe that's the problem and I just need to make one? It's weird, but I vaguely recall seeing that file a while back...

I also checked in public_html and most other folders, and did not see anything similar.

It is heartening to know I can customize my 404's, especially with php. Sounds like I'll be able to get this resolved after all :) .
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
They may be hidden from your view. To reveal them in cPanel, do the following please :)

1. Login to your cPanel.
2. Click on the File Manager button.
3. A popup titled 'Directory Selection' should appear. Make sure that the checkbox labelled 'Show Hidden Files (dotfiles)' is checked.
4. Click Go.

Now you might see a file named .htaccess in public_html. If you don't please create one.
 
Status
Not open for further replies.
Top