Define string replacement for URLs in the search results. This can be useful when indexing local intranet domains that are behind firewalls.
With the global RegExp option enabled or a RegExp prefix, the source and target parameters must be regular expressions. This option has the RegExp Replace extension since version 1.8.
The fully qualified host name of a server is www.foo.com. This is behind a firewall, so it is not known to the DNS. What is being returned from the search engine is http://www.foo.com/index.html. To return http://195.141.15.96/index.html, the following would have to be added:
Replace www.foo.com=195.141.15.96 RegExp Replace (.*)/folder/(.*)=\1/folder/item.php?id\=\2 |