How do I get htdig or htsearch to rewrite URLs in the search results?
This can be done by using the url_part_aliases configuration file attribute. You have to set up different configuration files for htdig and htsearch, to define a different setting of this attribute for each one. A large number of users insist on ignoring that last point and try to make do with just one definition, either for htdig or htsearch, or sometimes for both. This seems to stem from a fundamental misunderstanding of how this attribute works, so perhaps a clarification is needed. The url_part_aliases attribute uses a two stage process. In the first stage, htdig encodes the URLs as they go into the database, by using the pairs in url_part_aliases going from left to right. In the second stage, htsearch decodes the encoded URLs taken from the database, by using the pairs in url_part_aliases going from right to left. If you have the same value for url_part_aliases in htdig and htsearch, you end up with the same URLs in the end. If you modify the first string (the from string) in the
Related Questions
- Often, when I copy and paste URLs into the address bar, Mozilla will show Netscape search results instead of the site I am trying to reach. How can I deactivate this feature?
- How do I get htdig or htsearch to rewrite URLs in the search results?
- How do I get more than 10 pages of search results from htsearch?