Posted by J.O. Aho on 11/20/06 08:50
Christoph Burschka wrote:
> Named anchors allow links to point directly at certain paragraphs of a
> page using a fragment identifier in the URL (the bit that follows "#")
>
> I know that this is processed on the browser side - but is it possible
> to access this parameter on the server at all, or is it simply not
> transmitted by the browser?
>
> I need to set a 301 redirect to a different page, and I would like to
> preserve the fragment identifier in the new URL if that's possible...
$_SERVER['REQUEST_URI'] will give you the requested url, and with a bit
testing it seems like the #SOMETHING is browser side thing and isn't part of
the request and therefore you can't get that part.
//Aho
Navigation:
[Reply to this message]
|