[ic] Default file in pages subdir

Steve Graham interchange-users@icdevgroup.org
Thu Aug 1 14:07:00 2002


>
> > > 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.

-Steve

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com