It is currently Thu Mar 28, 2024 10:53 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: $_SERVER['REDIRECT_URL']
PostPosted: Tue Aug 02, 2011 5:16 am 
Newbie
Newbie

Joined: Sun Apr 03, 2011 1:01 am
Posts: 2
Hi,

I know the url does not exist that the user tried to access...

error404.php:
Code:
<?php
$url = explode("/", $_SERVER['REDIRECT_URL']);
$user = $url[1];
$foto = $url[2];

header("Location: index.php?user=$user&id=$foto");
?>


$_SERVER['REDIRECT_URL'] does not work, will be an apache configuration? redirects more of the variables has no value, help me please ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011