rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Custom 404 and $ SERVER ['REDIRECT_U]

Posté par Sandira, le Sunday April 6, 2008 02:16:41 PM
Hello,

I have my website hosted on a 1 and 1 Linux host. I am trying to get a custom 404 page working. I have set up Apache ( with a .htaccess file) to redirect 404 errors to 404.php. In want the PHP file to show the URL the person tried to go to. I have tried using $_SERVER ['REDIRECT_URL'], but yhis just returns "404.php". How do I show the URL the visitor tried to access before beign redirected to my custom 404 page ?
Configuration: Windows XP
Internet Explorer 6.0
Reply to Sandira  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 Tracynet, on Sunday April 6, 2008 04:25:32 PM
Hello


$_SERVER['REQUEST_URT'] ?

Also use this to list what defined in the array:

<?php

echo '<pre>' .print_r ($_SERVER,true). '</pre>';

?>
Reply to Tracynet
Software found in the relevant downloads
Download FileZilla Server 0.9.25FileZilla Server - FileZilla Server is an FTP server supports FTP and FTP over SSL/TLS.Category: FTP
License: Open Source
Download VLC  0.8.6hVLC - VLC media player is a portable multimedia player for many video and audio formats (MPEG1, MPEG2, MPEG4, DivX, mp3, ogg, ...)...Category: Video players
License: Open Source
Download AVG Anti-spyware 7.5.1.43AVG Anti-spyware - AVG Anti-spyware serves to clean your system of spywareCategory: Anti-Spyware
License: Freeware/gratuit
Download Avast! 4 Familial 4.8Avast! 4 Familial - avast! 4 Home Edition is a complete and free antivirus solution, fully able to find computer viruses, to create and check...Category: Antivirus
License: Freeware/gratuit
More freeware about « Custom 404 and $ SERVER ['REDIRECT_U] »