Welcome to Vestris Inc.
Internet Interactive Solutions Company



Software Documentation

UrlReplace

Name

UrlReplace — indexed urls text replacements

Synopsis

UrlReplace source = target

Description

Define a text replacement for all indexed urls. The replacement is performed before any topmost url is retrieved or before any new url is scheduled.

With the global RegExp option enabled or a RegExp prefix, the source and target parameters must be regular expressions. This option has the RegExp UrlReplace extension since version 1.6.

Running Alkaline with the -exv parameter will output the details of replacements for this function, including regular expressions syntax errors. A warning will be issued when an url is truncated to an empty string as a result of the regexp replacement. To exclude urls from indexing, you should use the UrlExclude directive.

This option was added in version 1.3 (12-Jul-2000).

Example

UrlReplace foo=bar
RegExp UrlReplace (.*)(www)(.*)=\1ns\3
RegExp UrlReplace (.*)\$password\=[0-9]*(.*)=\1$password=default\2