Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 30th Apr 2010, 02:34 PM   #1
Portuguese Warrior
War Room Member
 
Fernando Veloso's Avatar
 
Join Date: 2008
Location: Good Old Europe
Posts: 4,035
Thanks: 1,616
Thanked 1,059 Times in 708 Posts
Blog Entries: 7
Default
Custom 404 Page Error - What Am I Doing Wrong?
Share on: 
fb share twitter share gplus share more share

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?!!!

People make good money selling to the rich. But the rich got rich selling to the masses.
Fernando Veloso is offline  
Unread 30th Apr 2010, 04:00 PM   #2
Peaceful Warrior
War Room Member
 
theIMgeek's Avatar
 
Join Date: 2009
Location: Calgary
Posts: 277
Thanks: 16
Thanked 106 Times in 63 Posts
Default
Re: Custom 404 Page Error - What Am I Doing Wrong?
Share on: 
fb share twitter share gplus share more share

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

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
theIMgeek is offline  
Unread 30th Apr 2010, 05:01 PM   #3
Portuguese Warrior
War Room Member
 
Fernando Veloso's Avatar
 
Join Date: 2008
Location: Good Old Europe
Posts: 4,035
Thanks: 1,616
Thanked 1,059 Times in 708 Posts
Blog Entries: 7
Default
Re: Custom 404 Page Error - What Am I Doing Wrong?
Share on: 
fb share twitter share gplus share more share

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!!

People make good money selling to the rich. But the rich got rich selling to the masses.
Fernando Veloso is offline  
Unread 30th Apr 2010, 05:26 PM   #4
Peaceful Warrior
War Room Member
 
theIMgeek's Avatar
 
Join Date: 2009
Location: Calgary
Posts: 277
Thanks: 16
Thanked 106 Times in 63 Posts
Default
Re: Custom 404 Page Error - What Am I Doing Wrong?
Share on: 
fb share twitter share gplus share more share

When in doubt, check the Apache error log.

That should give you the reason for the 500 error.

-Ryan

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
theIMgeek is offline  
The Following User Says Thank You to theIMgeek For This Useful Post:
Closed Thread


Bookmarks

Tags
404, custom, error, page, wrong


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:48 AM.