Welcome to WebmasterWorld Guest from 18.204.48.199

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Error 500 for custom 404

UGH.. please help

     
3:27 pm on Dec 10, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 16, 2001
posts:585
votes: 0


I am now getting a 500 error when I go to a wrong page, but in the address bar is the link to the script. I confirmed the paths are correct.

Any ideas?
Does anyone have a quick and easy script to create custom error pages?

12:43 am on Dec 11, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 12, 2003
posts:30
votes: 0


Could it be that there's something wrong with your .htaccess file that actually _is_ causing a 500 error.
1:13 am on Dec 11, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 29, 2002
posts:1819
votes: 0


Normally I have found if there is an error in the .htaccess it will give you a 500 through the entire site.

I may be wrong about that but would guess that there is a problem with the script or perhaps a line in .htaccess that is not allowing it to be shown.

What is the script php, cgi?

4:37 am on Dec 11, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


To find out if the problem is the script or the .htccess code, change the .htaccess code to point to a simple "hello world" html page. Then request the URL that would normally be redirected to the script - If you get "hello world", you'll know that .htaccess redirection is working OK, and the problem is either with the script, or with the file permissions of the script or of the files the script needs to access (if any).

Have you examined your raw server error logs to see why you're getting a 500-Server Error?

Jim

4:39 am on Dec 11, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 16, 2001
posts:585
votes: 0


It is a cgi that I have used before and while it is not my own, it has been legally installed. How do I know if the .htaccess page is messed up?