View previous topic :: View next topic |
Author |
Message |
b -
Joined: 07 Dec 2004 Posts: 6 Location: Germany
|
Posted: Fri Aug 14, 2009 10:40 am Post subject: 404 with append referer, how? |
|
|
Hello -
I like to add the wrong URL to an 404 error page link. So the user is refered to my external page indexer where the wrong URL is filtered and the most useful page will be shown.
The custom 404 page works but how to append?
How can I do this? I'm running PHP if it is needed for implementation.
I already carefully checked the forum and user help files but nothing found.
Thank you in advance.
- Henry |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Mon Sep 21, 2009 2:05 am Post subject: |
|
|
I know this answer is coming over a month later, but I'll go for it anyways...
So you're trying to get the URL of the page that generated a 404. Well, that can be done, and the variable is held in PHP as this: Code: | echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
If PHP isn't installed, you could try using SSI (server-side includes). That should give you a start if this topic is still important to you. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
|
b -
Joined: 07 Dec 2004 Posts: 6 Location: Germany
|
Posted: Wed Jul 07, 2010 8:10 pm Post subject: Works! |
|
|
Hi Stephen!
Even after several months :-)
I implemented it and it works!
Thank you very much for the explanation!
- Henry |
|
Back to top |
|
|
|