in your .htaccess file what is the code you have for the error pages.
If you include the http://www.yourdomain.com/ part then REQUEST_URI shows the error page url instead of the actaully error requested page.
We really need the code first to solve it.
THis is my htaccess file:
Code:
ErrorDocument 400 /400.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
And here is my error page:
PHP Code:
<table width="569" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="223"><b>Error Code:</b></td>
<td width="326"> <? echo("$REDIRECT_STATUS"); ?></td>
</tr>
<tr>
<td width="223"><b>Requested Page:</b></td>
<td width="326"><? echo("$REQUEST_URI"); ?> </td>
</tr>
<tr>
<td width="223"><b>Refering Page:</b></td>
<td width="326"><? echo("$HTTP_REFERER"); ?></td>
</tr>
</table>
Obviously, for each error i have a different page.
Hope this helps
Peter
Bookmarks