<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta content="MSHTML 6.00.2900.2180" name="GENERATOR">
<style></style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Lukesh,<br>
<br>
It is possible through apache </tt><code><tt>RewriteEngine.<br>
<br>
Subhendu</tt><br>
</code>--<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta content="MSHTML 6.00.2900.2180" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi all,</font></div>
<div> </div>
<div><font face="Arial" size="2">I have discovered strange issues
with all request variables. Here are examples only, but I was
try all useable variables in the REQUEST.</font></div>
<div> </div>
<div><font face="Arial" size="2">I want to use redirect to another
server with same relative link, but different domain,some like
that:</font></div>
<div> </div>
<div>
<div><font face="Arial" size="2"><dtml-call
"REQUEST.set('redirect_URL', '<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>' +
URLPATH0)"></font></div>
<div><font face="Arial" size="2"><dtml-call
expr="RESPONSE.redirect(_.str(redirect_URL), status=301)"></font><font
face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2">It does not work even if I make
obstructions for request variables like _.str(), _[''] etc.</font></div>
<div> </div>
<div><font face="Arial" size="2">In cases below variable
'redirect_URL' seems OK, but redirect goes into loop.</font></div>
<div> </div>
</div>
<div><font face="Arial" size="2"><dtml-call
"REQUEST.set('redirect_URL', '<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>' +
PATH_TRANSLATED)"><br>
<dtml-call "REQUEST.set('redirect_URL',
'<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>' + _.str(_['URLPATH1']))"><br>
<dtml-call "REQUEST.set('redirect_URL',
'<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>')"><br>
</font></div>
<font face="Arial" size="2">
<div><font face="Arial" size="2">In cases below variable
'redirect_URL' = 'h'.</font></div>
<div> </div>
<div><font face="Arial" size="2"><dtml-call
"REQUEST.set('redirect_URL',
URL.replace(BASE0,'<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>')[0])"><br>
<dtml-call "REQUEST.set('redirect_URL',
URL.replace(_.string.split(HTTP_HOST,':')[0],'<a class="moz-txt-link-abbreviated" href="http://www.otherdomain.com">www.otherdomain.com</a>')[0])"><br>
</font></div>
<font face="Arial" size="2">
</font></font>
<div> </div>
<div><font face="Arial" size="2">I was try different (very old)
Zope, but result is the same.</font></div>
<div> </div>
<div><font face="Arial" size="2">It is possible my uncorrect handle
with request variables, but how to handle correct with them?</font></div>
<div> </div>
<div><font face="Arial" size="2">Many thanks,</font></div>
<div> </div>
<div><font face="Arial" size="2">J. Lukesh</font></div>
</body>
</html>