Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
404 error page : how to retrieve the asked page ?

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
dvdw



Joined: 22 Jan 2009
Posts: 1

PostPosted: Thu 22 Jan '09 15:41    Post subject: 404 error page : how to retrieve the asked page ? Reply with quote

Hi,

I use a derived notfound.php page to perform some operations.

My idea is to retrieve the bad url call (example : indexo.php in place of index.php) and to redirect the user to the good page (index.php). I put some bad url's in an array and the good destination too.

I've try to retrieve the bad url call with an $_SERVER['URL'] or with a $_SERVER['HTTP_REFERER'] but i always receive the url of the notfound.php page and not the indexo.php.

Any idea to retrieve the bad url ?
Thank you in advance
Dominique
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1