On Thu, 15 Jul 2004, Eduardo Przysiezny wrote:

> Date: Thu, 15 Jul 2004 01:21:52 +0000
> From: Eduardo Przysiezny <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [htdig] url_rewrite_rules vc search_rewrite_rules
> 
> Hi!!!
> I�m working with the htdig and I wan�t to convert the address that I have to 
> another, but I want to change it in the htdig time, not in the search 
> time...
> 
> I know that I�ve to use "url_rewrite_rules", but it doesn�t work !!!
> But when I use the same Reg Expression with "search_url_rules", it works (in 
> the search time)...
> 
> Anyone know what can I do ???
> 
> If anyone have another solution, here is what I want:
> 
> I�ve 2 websites with the same content but differente address...
> I need to run htdig in the first site and then send indexed database to the 
> second....
> Because this I want to rewrite the host in the 1st url address to the host 
> of the 2nd site...
> Is it possible, if I in the 1st website I don�t have http access to the 2nd 
> ?
> 
> Tnkz a lot for the help !!!!!

You may want to use the url_part_aliases attribute instead:

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

Set up a config file for indexing and a separate one for searching.

In your indexing.conf add:
url_part_aliases:       http://your.site1.com/  *2

In your searching.conf:
url_part_aliases:       http://your.site2.com/  *2

For maximum flexibility you can use relative URLs in searching.conf:
url_part_aliases:       /                       *2

If you choose the relative URLs option, then to improve the the appearance
of the displayed search result URLs, uncomment the template_map definition
in your htdig.conf, and edit the long.html result template file in the
common directory to add "http://$(SERVER_NAME)" before the $&(URL) in the
link description text.  You don't really need to add this part to the URL
in the <a href="..."> tags, as the browser will know the server name to
add.

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to