[ic] Disable Promiscuous / Duplicate URLs
Rick Bragg
lists at gmnet.net
Mon Nov 29 14:32:05 UTC 2010
On Sat, 2010-11-27 at 12:32 -0600, Cameron B. Prince wrote:
> Hey guys,
>
> Can you tell me if there is a configuration directive or pragma that
> will disable the default Interchange behavior that allows multiple
> URLs to access the same page such as:
>
> http://demo.icdevgroup.org/i/demo4/aboutus.html
> http://demo.icdevgroup.org/i/demo4/aboutus.htm
> http://demo.icdevgroup.org/i/demo4/aboutus
>
> I know it can be resolved with an Apache Rewrite rule. I just thought
> I’d check if it could be handled directly from within Interchange.
>
> Thanks,
> Cameron
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
Hi,
I have used Action Maps to do this in the past.
i.e:
ActionMap citymanager <<EOA
sub {
$CGI->{mv_nextpage} = 'city-manager';
return 1;
}
EOA
You can even pass an argument if you want:
ActionMap citymanager <<EOA
sub {
$Session->{arg} = '211';
$CGI->{mv_nextpage} = 'city-manager';
return 1;
}
EOA
Rick
More information about the interchange-users
mailing list