[ic] Default file in pages subdir

Mike Heins interchange-users@icdevgroup.org
Thu Aug 1 14:55:02 2002


Quoting Steve Graham (dtlgc@hotmail.com):
> >
> > > > Autoload <<EOS
> > > > sub {
> > > >     $url = $Session->{last_url};
> > > >     $url =~ s%^/cgi-bin/cart.cgi/%%;
> > > >
> > > >     if (-d "/cat/whatever/$url") {
> > > >         $CGI->{mv_nextpage} = "$url/index.html";
> > > >     }
> > > > }
> > > > EOS
> >
> >[snip]
> >
> >
> >If you get it to work before me, then I would be thankful if you could 
> >share
> >your subroutine :)
> >
> >Rene
> 
> Hi,
> I know very little perl, but several other structured languages - but I 
> noticed that the last_url DOES NOT contain the complete url, but just the 
> part from your catalog root directory - check your active session on the 
> Administration tab.
> 
> such as
> /sku#.html
> or
> /search.html
> many of my directories are like
> /mfg/mfg1/stuff/index.html
> and I noticed that most of the seach engines will leave off the index.html 
> when indexing our web pages.....
> 
> All I can tell so far....
> 
> > > >     $url =~ s%^/cgi-bin/cart.cgi/%%;
> is this line must be wrong
> 
> 
> I'm going to have to buy me a perl book to try to figure out what is trying 
> to happen in the code.
> 

Actually, I think it should work if you just remove the ".html" from the
mv_nextpage setting.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Software axiom: Lack of speed kills.