Custom 404 Page Error - What Am I Doing Wrong?

3 replies
Hey guys

Decided to create a custom 404 page to a new site BUT all I get is a 500 error

This is my .htaccess file:

ErrorDocument 404 /ops.html

Uploaded the 2 files, ht and html, changed ht to 644, BUT all I get is this 500 error.

What the heck?!!!
#404 #custom #error #page #wrong
  • Profile picture of the author theIMgeek
    A 500 server error can be caused by a mistake in an .htaccess file.

    If you delete .htaccess does the error go away?

    If so, and that ErrorDocument line is the only thing in the file, then that leaves one of two options for the cause of the problem.

    1. Make sure you are editing your file in plain text. On Windows, use the basic Notepad.exe. More complex text editors can introduce unwanted hidden characters into the file.

    2. If it's not #1, perhaps you are uploading the file in binary format rather than ASCII.

    -Ryan
    Signature
    FREE WSO: Protect and Automatically Deliver Your Digital Products

    Ask the Internet Marketing Geek
    <-- Happy to help with technical challenges
    MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
    {{ DiscussionBoard.errors[2046604].message }}
    • Profile picture of the author Fernando Veloso
      Originally Posted by RJP View Post

      A 500 server error can be caused by a mistake in an .htaccess file.

      If you delete .htaccess does the error go away?

      If so, and that ErrorDocument line is the only thing in the file, then that leaves one of two options for the cause of the problem.

      1. Make sure you are editing your file in plain text. On Windows, use the basic Notepad.exe. More complex text editors can introduce unwanted hidden characters into the file.

      2. If it's not #1, perhaps you are uploading the file in binary format rather than ASCII.

      -Ryan

      Hey Ryan, thanks for your feedback!

      The file is saved in ANSI coding and it's uploaded in ASCII - with Fillezilla.

      I really don't know what the heck is going on.

      Isn't this supposed to work perfectly?

      Oh and the site is ok, I can see all the pages BUT when I try to trigger the 404 with a unknown URL it just shows up that 500 Internal Server Error!!
      Signature
      People make good money selling to the rich. But the rich got rich selling to the masses.
      {{ DiscussionBoard.errors[2046806].message }}

Trending Topics