Apache Redirection Issue + + for Encoding/Decoding

------_=_NextPart_001_01CAA649.B4D946D5
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All,

http://www.domain-name.com/templatedata/Offer/Datasheet/data /en/shared/c
ontrol/appy_relays.xml&f=3DNNM1:appy+%26+fiss+Relays~!NNM2:a ppy+relays~!NN
M3:appy%20relays
<http://www.domain-name.com/templatedata/Offer/Datasheet/data/en/shared/
control/appy_relays.xml&f=3DNNM1:appy+%26+fiss+Relays%7E%21N NM2:appy+relay
s%7E%21NNM3:appy%20relays>

Here in The URL all the special Character for a perticular text are
encoded in
UTF-8 format
For example: Function Name NNM1:Appy+%26+Fiss+Relays where "&" is
replaced by
%26.

There is code written in the redirect_corporate.conf file

RewriteRule ^(/templatedata/Offer/Datasheet/data/en/.*?/control/.*)$
/sites/corporate/en/products-services/control/products-offer /presentatio
n.page?c_filepath=3D$1
[L,R=3Dpermanent]

Upon Apache Redirection Apache Decodes the %26 to &.
After Apache- Redirection
http://www.domain-name.com/sites/corporate/en/products-servi ces/control/
products-offer/presentation.page?c_filepath=3D/templatedata/ Offer/Datashee
t/data/en/shared/control/appy_relays.xml&f=3DNNM1:appy+&+fis s+Relays~!NNM2
:appy+relays~!NNM3:appy%20relays
<http://www.domain-name.com/sites/corporate/en/products-services/control
/products-offer/presentation.page?c_filepath=3D/templatedata /Offer/Datashe
et/data/en/shared/control/appy_relays.xml&f=3DNNM1:appy+&+fi ss+Relays%7E%2
1NNM2:appy+relays%7E%21NNM3:appy%20relays>



Kidly let me know what should i do to preserve the URL format which i
send to
Apache for redirection.





Mithil Shukla



MphasiS | Applications
+91 22 67883488 office | +91 981.996.8300 mobile | mithil.s [at] mphasis.com

B Wing, 2nd Floor, Unit No. 101 & Unit No. 201, Infinity I.T Park Bldg.
No. 4, 239 General A .K .Vaidya Marg, Dindoshi, Malad (East), Mumbai,
India - 400097
www.mphasis.com <http://www.mphasis.com/>




Information transmitted by this e-mail is proprietary to MphasiS, its assoc=
iated companies and/ or its customers and is intended
for use only by the individual or entity to which it is addressed, and may =
contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended re=
cipient or it appears that this mail has been forwarded
to you without proper authority, you are notified that any use or dissemina=
tion of this information in any manner is strictly
prohibited. In such cases, please notify us immediately at mailmaster [at] mphas=
is.com and delete this mail from your records.

------_=_NextPart_001_01CAA649.B4D946D5
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1><pre><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>Hi All,<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><a
href=3D"http://www.domain-name.com/templatedata/Offer/Datasheet/data/en/sha=
red/control/appy_relays.xml&f=3DNNM1:appy+%26+fiss+Relays%7E%21NNM2:app=
y+relays%7E%21NNM3:appy%20relays">http://www.domain-name.com/templatedata/O=
ffer/Datasheet/data/en/shared/control/appy_relays.xml&f=3DNNM1:appy+%26=
+fiss+Relays~!NNM2:appy+relays~!NNM3:appy%20relays</a><o:p></o:p></span></f=
ont></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>Here in The =
URL all the special Character for a perticular text are encoded in<o:p></o:=
p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>UTF-8 format=
<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>For example:=
Function Name NNM1:Appy+%26+Fiss+Relays where "&" is replace=
d by<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>%26.<o:p></o=
:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>There is cod=
e written in the redirect_corporate.conf file <o:p></o:p></span></font></pr=
e><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>RewriteRule =
^(/templatedata/Offer/Datasheet/data/en/.*?/control/.*)$<o:p></o:p></span><=
/font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>/sites/corpo=
rate/en/products-services/control/products-offer/presentation.page?c_filepa=
th=3D$1<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>[L,R=3Dperma=
nent]<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>Upon Apache =
Redirection Apache Decodes the %26 to &.<o:p></o:p></span></font></pre>=
<pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>After Apache=
- Redirection<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><a
href=3D"http://www.domain-name.com/sites/corporate/en/products-services/con=
trol/products-offer/presentation.page?c_filepath=3D/templatedata/Offer/Data=
sheet/data/en/shared/control/appy_relays.xml&f=3DNNM1:appy+&+fiss+R=
elays%7E%21NNM2:appy+relays%7E%21NNM3:appy%20relays">http://www.domain-name=
..com/sites/corporate/en/products-services/control/products-offer/presentati=
on.page?c_filepath=3D/templatedata/Offer/Datasheet/data/en/shared/control/a=
ppy_relays.xml&f=3DNNM1:appy+&+fiss+Relays~!NNM2:appy+relays~!NNM3:=
appy%20relays</a><o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> <=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>Kidly let me=
know what should i do to preserve the URL format which i send to<o:p></o:p=
></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>Apache for r=
edirection.<o:p></o:p></span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><b><font size=3D1 color=3Dblack face=3DArial><span
style=3D'font-size:9.0pt;font-family:Arial;color:black;font- weight:bold'>Mi=
thil
Shukla</span></font></b><font face=3DArial><span style=3D'font-family:Arial=
'> <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Times New Roman"><span style=3D=
'font-size:
8.0pt'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><strong><b><font size=3D1 color=3Dgray face=3D"Times N=
ew Roman"><span
style=3D'font-size:9.0pt;color:gray'>MphasiS </span></font></b></stron=
g><font
size=3D1 color=3Dgray face=3DArial><span style=3D'font-size:9.0pt;font-fami=
ly:Arial;
color:gray'>| </span></font><strong><b><font size=3D1 color=3Dgray
face=3D"Times New Roman"><span style=3D'font-size:9.0pt;color:gray'>Applica=
tions</span></font></b></strong><font
size=3D1 color=3Dgray face=3DArial><span style=3D'font-size:9.0pt;font-fami=
ly:Arial;
color:gray'><br>
</span></font><font size=3D1 color=3Dgray face=3DArial><span style=3D'font-=
size:9.0pt;
font-family:Arial;color:gray'>+91 22 67883488 office | +91 981.996.8300 mob=
ile
| <a href=3D"mailto:mithil.s [at] mphasis.com">mithil.s [at] mphasis.com</a>  <b=
r>
B Wing, 2nd Floor, Unit No. 101 & Unit No. 201, Infinity I.T Park Bldg.=
No.
4, 239 General A .K .Vaidya Marg, Dindoshi, Malad (East), Mumbai, India =
211;
400097 <br>
<a href=3D"http://www.mphasis.com/">www.mphasis.com</a><o:p></o:p></span></=
font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<pre>
Information transmitted by this e-mail is proprietary to MphasiS, its assoc=
iated companies and/ or its customers and is intended
for use only by the individual or entity to which it is addressed, and may =
contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended re=
cipient or it appears that this mail has been forwarded
to you without proper authority, you are notified that any use or dissemina=
tion of this information in any manner is strictly
prohibited. In such cases, please notify us immediately at mailmaster [at] mphas=
is.com and delete this mail from your records.
</pre></body>

</html>

------_=_NextPart_001_01CAA649.B4D946D5--
Mithil S [ Fr, 05 Februar 2010 10:58 ] [ ID #2031396 ]

Re: Apache Redirection Issue + + for Encoding/Decoding

> Kidly let me know what should i do to preserve the URL format which i send
> to Apache for redirection.

I'm not totally sure, but I think what you might be looking for is the
'B' flag for mod_rewrite.

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

Search for 'escape backreferences'. So the end of your RewriteRule
would look like [B,L,R=permanent]. Try that.

Cheers,
Phil.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Philip Wigg [ Fr, 05 Februar 2010 11:21 ] [ ID #2031398 ]
Webserver » gmane.comp.apache.user » Apache Redirection Issue + + for Encoding/Decoding

Vorheriges Thema: Tomcat 6.0.24 has a new option that allows = in cookie values without quoting
Nächstes Thema: How to check that mod_deflate is enable ?