Jump to content

Recommended Posts

Posted

I've created a custom 404 error page in cpanel but it's not showing up when I got to my site and test it. Is there a tutorial somewhere that explains exactly how this works?

Posted

There's really nothing special about the page except that it has an extension of .shtml intead of .html or .htm

 

So there should be a file called 404.shtml in your public_html folder.

 

That page would display whenever someone tried to access a page on your site that did not exist.

Posted

Right, the 404.shtml page was created, and if I go to www.mysite.com/404.shtml I can see it, but if I try to go to page that doesn't exist, I get the standard 404 error rather than my custom file.

Posted

I thought it worked without that. Make sure there isnt one already there, if there is, remove it. If not then try something like ErrorDocument 404 /path/to/404.shtml and see if that fixes it.

Posted
I thought it worked without that. Make sure there isnt one already there, if there is, remove it. If not then try something like ErrorDocument 404 /path/to/404.shtml and see if that fixes it.

There is nothing in my htaccess file and my custom 404 works fine.

Posted
Right, the 404.shtml page was created, and if I go to www.mysite.com/404.shtml I can see it, but if I try to go to page that doesn't exist, I get the standard 404 error rather than my custom file.

Can we have a link to your site and maybe we can figure out why it's not displaying for you?

  • 6 months later...
Posted

Okay, so I notice that 404.shtml file in my public_html folder. Is this something I create first, and then place in there? Or is there an existing file that I'm supposed to edit?

 

Thank you for the fast responses! Rock Sign

Posted (edited)

If you leave the extension .SHTML you should not need to add the ErrorDocument statement to the .htaccess file. Just to be clear.

Edited by TCH-Bruce

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...