It doesnt seem to, but perhaps I don't do it the right way. Let me try to explain my 'web site' in brief:
http://htdig.org/attrs.html#search_rewrite_rules http://htdig.org/attrs.html#url_rewrite_rules <---- http://htdig.org/attrs.html#url_part_aliases
Take a look at the url_rewrite_rules first. It may be able to solve your problem. The other two links change the links at different times. I think you want url_rewrite_rules which permanently changes teh URLs as they are indexed.
search_rewrite_rules changes the URLs when the documents are searched
url_part_aliases changes parts of rules (like this: completely transpose the old server name www.example.com to the new server name: www.elpmaxe.com)
Hope that helps!
emma :)
The 'real' site displays some database records and requires users to log in. I have made a modified version of this site, which displays the same data, basically, but all links have been removed, and I have added a new link, that points to the next record. The normal user accesses the database like this (eg):
http://my.server.com/cgi-bin/sdrdb?p=sdrsearch&SDR=21&COLSET=ALL
- and htdig uses:
http://my.server.com/cgi-bin/sdrdig?p=sdrsearch&SDR=21&COLSET=ALL
- thus, the only difference is that 'sdrdb' is replaced with 'sdrdig'. Of course, I want the users to get links that use 'sdrdb', when s/he uses htdig.
First I tried url_rewrite_rules:
url_rewrite_rules: (.*)sdrdig(.*) \\1sdrdb\\2
- and htdig -vvv gave me:
ht://dig Start Time: Tue Feb 25 12:31:17 2003
1:1:http://sdrdb/cgi-bin/sdrdig?p=sdr_search&SDR=21&COLSET=ALL
New server: sdrdb, 80
- Persistent connections: enabled
- HEAD before GET: disabled
- Timeout: 30
- Connection space: 0
- Max Documents: -1
- TCP retries: 1
- TCP wait time: 5
Trying to retrieve robots.txt file
Making HTTP request on http://sdrdb/robots.txt
Request time: 0 secs
pushed
pick: sdrdb, # servers = 1
> sdrdb supports HTTP persistent connections (infinite)
0:2:0:http://sdrdb/cgi-bin/sdrdig?p=sdr_search&SDR=21&COLSET=ALL: Making
HTTP request on
http://sdrdb/cgi-bin/sdrdig?p=sdr_search&SDR=21&COLSET=ALL
Request time: 1 secstitle: SDR Database href: http://sdrdb/cgi-bin/sdrdb?p=sdr_search&SDR=22&COLSET=ALL (22) resolving 'http://sdrdb/cgi-bin/sdrdb?p=sdr_search&SDR=22&COLSET=ALL'
- and after some deliberation it decides that it is finished, since it doesn't get any result (because this URL requires a user login).
Then I tried search_rewrite_rules:
search_rewrite_rules: (.*)sdrdig(.*)
- and htdig -vvv gave me loads of search results, all using the 'sdrdig' variant:
\\1sdrdb\\20:2:0:http://sdrdb/cgi-bin/sdrdig?p=sdr_search&SDR=21&COLSET=ALL:
Making HTTP request on http://sdrdb/cgi-bin/sdrdig?p=sdr_search&SDR=21&COLSET=ALL
- Unfortunately, when I do a search, the links I get are pointed through 'sdrdig', not 'sdrdb', which is what I had hoped for.
So, if you're still with me, what is wrong here?
/jan
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

