According to Chad Phillips:
> I am trying to rewrite the domain name of urls during the dig.  All of the 
> web pages have the domain http://new.mysite.org  . I need them in the 
> htdig database as http://www.mysite.org .  I want to rewrite the domain 
> name on the dig so that my url restricts work.
> 
> I have looked at FAQ 4.17 and at  url_rewrite_rules, but no luck.  
> (Perhaps it is my lack of regular expression skills?)  Could someone give 
> me an example on how to do this?

If you want to rename the hostname during the dig (i.e. before the documents
are fetched), then I'd recommend using server_aliases instead.  E.g.:

server_aliases: new.mysite.org:80=www.mysite.org:80

However, both server_aliases and url_rewrite_rules are processed after
the URL is checked against limit_urls_to and exclude_urls, so you'd
need to include both the "before" and "after" host names in these latter
two attributes.

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

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
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

Reply via email to