Apache Redirection Issue + + for Encoding/Decoding

Apache Redirection Issue + + for Encoding/Decoding

am 05.02.2010 10:58:02 von Mithil S

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

Hi All,
=20
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
control/appy_relays.xml&f=3DNNM1:appy+%26+fiss+Relays%7E%21N NM2:appy+relay
s%7E%21NNM3:appy%20relays>=20
=20
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.
=20
There is code written in the redirect_corporate.conf file=20
=20
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]
=20
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
/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>=20
=20
=20
=20
Kidly let me know what should i do to preserve the URL format which i
send to
Apache for redirection.

=20

=20

Mithil Shukla=20

=20

MphasiS | Applications
+91 22 67883488 office | +91 981.996.8300 mobile | mithil.s@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=20
www.mphasis.com =20

=20


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

hemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">











style=3D'font-size:10.0pt'>Hi All,

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New">
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
ont>

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New">Here in The =
URL all the special Character for a perticular text are encoded in p>

size=3D2 face=3D"Courier New">UTF-8 format=

size=3D2 face=3D"Courier New">For example:=
Function Name NNM1:Appy+%26+Fiss+Relays where "&" is replace=
d by

size=3D2 face=3D"Courier New">%26.
:p>

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New">There is cod=
e written in the redirect_corporate.conf file
e>

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New">RewriteRule =
^(/templatedata/Offer/Datasheet/data/en/.*?/control/.*)$
<=
/font>

size=3D2 face=3D"Courier New">/sites/corpo=
rate/en/products-services/control/products-offer/presentation.page?c_filepa=
th=3D$1

size=3D2 face=3D"Courier New">[L,R=3Dperma=
nent]

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New">Upon Apache =
Redirection Apache Decodes the %26 to &.
=

size=3D2 face=3D"Courier New">After Apache=
- Redirection

size=3D2 face=3D"Courier New">
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

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New"> <=
/o:p>

size=3D2 face=3D"Courier New">Kidly let me=
know what should i do to preserve the URL format which i send to >

size=3D2 face=3D"Courier New">Apache for r=
edirection.


0.0pt;
font-family:Arial'> 



0.0pt;
font-family:Arial'> 



style=3D'font-size:9.0pt;font-family:Arial;color:black;font- weight:bold'>Mi=
thil
Shukla
'> 



'font-size:
8.0pt'> 



ew Roman"> style=3D'font-size:9.0pt;color:gray'>MphasiS  g> size=3D1 color=3Dgray face=3DArial> ly:Arial;
color:gray'>|
face=3D"Times New Roman">Applica=
tions
size=3D1 color=3Dgray face=3DArial> ly:Arial;
color:gray'>

size:9.0pt;
font-family:Arial;color:gray'>+91 22 67883488 office | +91 981.996.8300 mob=
ile
|   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

font>



'font-size:
12.0pt'> 






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




------_=_NextPart_001_01CAA649.B4D946D5--

Re: Apache Redirection Issue + + for Encoding/Decoding

am 05.02.2010 11:21:24 von Philip Wigg

> 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 for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org