[ic] Mod_rewrite & mod_interchange & short urls
Kevin Walsh
kevin at cursor.biz
Fri Apr 20 08:09:54 EDT 2007
Peter <peter at pajamian.dhs.org> wrote:
> On 04/20/2007 02:55 AM, Peter wrote:
> > ActionMap categorie <<EOA
> > sub {
> > # Grab only the second val in path.
> > my $cat = (split(m:/:, shift, 3))[1];
> > # chop off the .html if applicable.
> > $cat =~ s/.html$//i;
> >
> > my %scan = (
> > st => 'db',
> > co => 'yes',
> > sf => 'prod_group',
> > se => $cat,
> > tf => 'category',
> > va => "categorie=$cat\0ss_categorie=",
> > );
> >
> > @{$CGI}{keys %scan} = values %scan;
> > $CGI->{mv_todo} = 'search';
> > $Tag->update('process');
> > $CGI->{mv_nextpage} = $Config->{Special}->{results};
> > return 1;
> > }
> > EOA
> >
> Forgot to mention, you can find more info about ActionMap at
> <http://www.interchange.rtfm.info/icdocs/config/ActionMap.html>.
>
This sort of question crops up every now and again, so I've added it
as a practical example on the ActionMap docs page you quoted above.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list