JANUS WEB REDIRECT: Difference between revisions
(Created page with "{{DISPLAYTITLE:JANUS WEB REDIRECT}} <span class="pageSubtitle"><section begin="desc" />WEB REDIRECT<section end="desc" /></span> The JANUS WEB REDIRECT subcommand identifies the...") |
m (1 revision) |
(No difference)
|
Revision as of 20:04, 2 March 2011
<section begin="desc" />WEB REDIRECT<section end="desc" />
The JANUS WEB REDIRECT subcommand identifies the URL to which incoming URL requests that match a specified pattern are redirected.
Syntax
<section begin="syntax" /> JANUS WEB portname REDIRECT [method] url redir_url <section end="syntax" />
Portname, method, and url are explained in The JANUS WEB command.
redir_url is the URL to which requests that match the pattern in url are redirected.
Just as url can contain wildcard characters, redir_url can also contain wildcard characters. The wildcard characters in redir_url are replaced with the characters that matched the corresponding wildcard characters in url at the time of the request. For example, given the following rule, a request for URL /JUNK/MAIN.HTML is redirected to HTTP://LOCAL.NTBOX.COM/JUNK/MAIN.HTML:
JANUS WEB WEBPORT REDIRECT /JUNK/* - HTTP://LOCAL.NTBOX.COM/JUNK/*
The redirection URL can be an absolute URL (that is,
References
See: List of Janus commands and List of JANUS WEB subcommands