[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: your mail
- From: Fritz Zaucker <nospam@thanx>
- Date: Sat, 13 Apr 2002 12:35:12 +0200 (MEST)
Hi Darryl
you can redefine any existing HTML-tag with WML. So something like the
following should work:
<define-tag A endtag=required>
...
<A* HREF="/cgi-bin/redirect.cgi?<get-var HREF>"
%body
</A*>
...
</define-tag>
You might have to work on the quotation characters a bit, I am not sure of
hand if there might be a problem there.
The *-version of a tag refers to the "original" HTML-version of the tag.
Alternatively, you could also use mod_rewrite (if you are using Apache) to
do the redirects in your webserver. This has the advantage that when a
visitor rolls his mouse over a link he/she sees the "real" URL instead of
the whole redirection story.
Cheers,
Fritz
On Sat, 13 Apr 2002, Darryl Smith wrote:
> G'Day
>
> I want to set WML up so that if I have a url like
> <A HREF="http://www.hostname.dom/page/">a text</A>
> That it will change to
> <A HREF="/cgi-bin/redirect.cgi?http://www.hostname.dom/page/">a
> text</A>
>
> So that I can monitor how people are using links. I think this should be
> easy... Has anyone done this before?
>
> Any help would be appreciated
>
> Darryl
>
> ---------
> Darryl Smith, VK2TDS POBox 169 Ingleburn NSW 2565 Australia
> Mobile Number 0412 929 634 [+61 4 12 929 634 International]
> Darryl@radio-active.net.au | www.radio-active.net.au
>
>
> ______________________________________________________________________
> Website META Language (WML) www.engelschall.com/sw/wml/
> Official Support Mailing List sw-wml@engelschall.com
> Automated List Manager majordomo@engelschall.com
>
--
Dr. Fritz Zaucker, Head IT Support Group
Department of Information Technology and Electrical Engineering
Swiss Federal Institute of Technology
ETZ J97, Gloriastrasse 35, CH-8092 Zurich, Switzerland
Tel.: +41-1-632-5241 Fax: +41-1-632-1194 http://people.ee.ethz.ch/~zaucker/
E-mail: zaucker@ee.ethz.ch (see home page for PGP key)
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com