[ic] Search engine optimized ??

Stefan Hornburg interchange-users@icdevgroup.org
Fri Dec 13 04:29:01 2002


On Thu, 12 Dec 2002 18:08:02 -0500
"Jon Shoberg" <jshoberg@attbi.com> wrote:

> Has anyone done coding for search engine optimization for interchange?
> I'm referring to URL optimization where instead of having:
> 
> cgibin/store/scan/fi=products/st=db/va=banner_text%3d.html?id=5GnEIzQZ
> 
> the URL looks like ...
> 
> /store/furniture/bedroom/index.html

Use an ActionMap for that. E.g.:

ActionMap manufacturer <<EOR
sub {
	my ($action, $manufacturer) = split ('/', shift);

	$CGI->{mv_todo} = 'search';
	$CGI->{mv_search_file} = 'component';
	$CGI->{mv_searchtype} = 'db';
	$CGI->{mv_coordinate} = 1;
	$CGI->{mv_like_field} = 'manufacturer';
	$CGI->{mv_like_spec} = $manufacturer;
	$CGI->{mv_search_field} = "sell";
	$CGI->{mv_searchspec} = "1";
	$CGI->{mv_column_op} = "eq";
	$CGI->{mv_nextpage} = 'results';
	$CGI->{searchname} = 'man';
	$Tag->update('process');

	1;
}
EOR

Ciao
     Racke