<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>&nbsp;</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>&nbsp;</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>&nbsp;</div>
    <div>
      <div><font face="Arial" size="2">&lt;dtml-call
          "REQUEST.set('redirect_URL', '<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>' +
          URLPATH0)"&gt;</font></div>
      <div><font face="Arial" size="2">&lt;dtml-call
          expr="RESPONSE.redirect(_.str(redirect_URL), status=301)"&gt;</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&nbsp;variables like _.str(), _[''] etc.</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">In cases below variable
          'redirect_URL' seems OK, but redirect goes into loop.</font></div>
      <div>&nbsp;</div>
    </div>
    <div><font face="Arial" size="2">&lt;dtml-call
        "REQUEST.set('redirect_URL', '<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>' +
        PATH_TRANSLATED)"&gt;<br>
        &lt;dtml-call "REQUEST.set('redirect_URL',
        '<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>' + _.str(_['URLPATH1']))"&gt;<br>
        &lt;dtml-call "REQUEST.set('redirect_URL',
        '<a class="moz-txt-link-freetext" href="http://www.otherdomain.com">http://www.otherdomain.com</a>')"&gt;<br>
      </font></div>
    <font face="Arial" size="2">
      <div><font face="Arial" size="2">In cases below variable
          'redirect_URL'&nbsp;= 'h'.</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">&lt;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])"&gt;<br>
          &lt;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])"&gt;<br>
        </font></div>
      <font face="Arial" size="2">
      </font></font>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">I was try different (very old)
        Zope, but result is the same.</font></div>
    <div>&nbsp;</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>&nbsp;</div>
    <div><font face="Arial" size="2">Many thanks,</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">J. Lukesh</font></div>
  </body>
</html>