Don't know if this would go here or in the Apache forum.
In any case, here's the deal. I'd basically like to add a line like this:
ErrorDocument 404 /error/all.php?code=404
Now the only way I can think of to do something like this is to do it the opposite way. Have a top and bottom file and include those from the 404.php page.
If I have to do this, so be it, but I was hoping there'd be a better way to pass a variable somehow. Ideas?
Error Page Handling with Apache
Moderator: General Moderators
- artexercise
- Forum Commoner
- Posts: 33
- Joined: Thu Nov 20, 2003 9:38 am
- Location: Raleigh, NC
- artexercise
- Forum Commoner
- Posts: 33
- Joined: Thu Nov 20, 2003 9:38 am
- Location: Raleigh, NC
oops I misunderstood.
httpd.conf
Somewhere at the beginning of all.php
This might work. Beyond this, I'd try your idea. 
JOE--
httpd.conf
Code: Select all
ErrorDocument 404 /all.phpCode: Select all
$server_error_type = $_SERVERї'REDIRECT_STATUS'];JOE--