Forum Moderators: phranque

Message Too Old, No Replies

Error 500 for custom 404

UGH.. please help

         

Acternaweb

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

10+ Year Member



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?

Laxters

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

10+ Year Member



Could it be that there's something wrong with your .htaccess file that actually _is_ causing a 500 error.

Visit Thailand

1:13 am on Dec 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?

jdMorgan

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

WebmasterWorld Senior Member 10+ Year Member



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

Acternaweb

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

10+ Year Member



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?