Jump to content

Can't Get My Custom 404 Error Page To Work


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites
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.

Link to post
Share on other sites
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?

Link to post
Share on other sites
  • 6 months later...

Join the conversation

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

Guest
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...