[ic] Rewriting URLs made with [area href="..." arg="A"]
Davor Ocelic
docelic at hcoop.net
Thu Mar 1 14:17:54 EST 2007
On Thu, Mar 01, 2007 at 01:16:51PM -0500, DB wrote:
> I see from the docs how to use
> [area href="foo" arg="bar"]
>
> to generate a URL such as
> http://www.example.com/foo.html?id=6CZ2whqo&mv_arg=bar
>
> Can anyone dream up a rewite rule that would change
> http://www.example.com/foo.html?id=6CZ2whqo&mv_arg=bar
>
> into
> http://www.example.com/bar.html
>
Rewriting is one way, another is Interchange ActionMaps:
http://www.icdevgroup.org/xmldocs/glossary/index.html#ActionMap
http://www.icdevgroup.org/xmldocs/confs/ActionMap.html
So, a good start for you would be:
ActionMap foo <<EOS
sub {
if ( $CGI->{mv_arg} ) {
.....
}
}
EOS
Then, accessing page 'foo' would run the associated subroutine.
-doc
More information about the interchange-users
mailing list