According to Leigh Makewell:
> For example we have a page that contains information about dogs
> (/pages/dogs.html). When viewed normaly we get a frameset that contains
> a contents page. That contents page has a 'next' button that will take
> us to a page containing information about cats (dogsFrame.html). So we
> want to create the database using '/pages/dogs.html' but when we do a
> search for dogs we do not want the search engine to return
> '/pages/dogs.html' but 'dogsFrame.html'
> 
> Can this be done using htdig? If so how? It seems that url_part_aliases
> does this but I can't get it work. Any help would be appreciated.

You could use url_part_aliases to do this, but only if every <name>.html
file has a corresponding <name>Frame.html.  If there are some that don't,
you'll end up with bad URLs in the search results.  The key is to have
separate url_part_aliases settings, and therefore separate config files,
for digging and searching, so that
URLs will end up getting rewritten.  E.g., for htdig/htmerge:

  url_part_aliases: .html *1

and for htsearch:

  url_part_aliases: Frame.html *1

As the documentation says, you'll need to rebuild your database after
changing the url_part_aliases for htdig.

See http://www.htdig.org/attrs.html#url_part_aliases

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.

Reply via email to