|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Howdy!
I'm trying to create my own custom errorpages with .htaccess refferring to a php document. So I searched on google and now I know that I have to use the line ErrorDocument 404 /error.php?c=404 But then I get a problem... My server is returning an error 500: internal server error... It works fine when I point my browser directly to the error.php file... I don't seem to find the solution... I will post my code below. Can anyone help me please? PHP Code:
Cheers
__________________
Work to live, don't live to work |
|
#2
|
||||
|
||||
|
I suspect it's the query string. Try removing ?c=404 from the end of the filename and see if that solves your problem.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
||||
|
||||
|
Nope, tried it but still an internal server error...
I searched in my Apache config, but I don't seem to find anything related to this specific problem. Any ideas? BTW, I'm using Debian Linux as my server Last edited by Spongy : March 18th, 2004 at 09:26 AM. Reason: Forgot something :D |
|
#4
|
||||
|
||||
|
Check your AllowOverride settings in your conf. I always have to head back over to apache.org to make sure I've got my settings right.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Custom errorpages with .htaccess and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|