Re: catching URL#target params
| From: | Seba | Date: | Mon, 15 Mar 2004 15:29:28 +0000 |
| Subject: | Re: catching URL#target params | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180469@lists.php.net to get a copy of this message | ||
Il lun, 2004-03-15 alle 15:55, David T-G ha scritto:
> 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?
>
>
The first one.
But if you do not own the pages I have not any idea to solve the
problem.
> %
> % 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