Re: catching URL#target params
| From: | David T-G | Date: | Mon, 15 Mar 2004 14:55:05 +0000 |
| Subject: | Re: catching URL#target params | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180461@lists.php.net to get a copy of this message | ||
Sebastiano, et al --
..and then Seba said...
%
% I think that the only way to catch it is to rewrite the URL.
%
% 1)Write pages with appropriates links. Somethink like
% href='www.yoursite.com/anchor_target/index.php'
Hmmm... Do you mean that I should write the calling page this way? I
can't do that; I'm planning for pages that I don't own that may not be
updated (or even formed properly from the start). Or do you mean I
create a subdir and index.php file for every possible link target? Ugh;
there are way too many of those.
Given a URL like
http://web-folio.net/help.php#delcoll
that should look like
http://web-folio.net/help.php?req=delcoll
for the new script, what do I put where in my site dir?
%
% 2)Create e rewrite rule in the htacces file.
OK.
%
%
% 3)Catch the target value from the php page parsing the rewritten URL
% www.yoursite.com/index.php&anchor=target
That sounds good, I think.
%
% I did it and it works.
Great! Now tell me more :-)
%
%
% Sebastiano
Thanks & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!