I have been asked to provide a URL redirect in sun java web server for an initial path that includes a "+" in its path
eg.
/ipd+ http://www.deja.com
That doesn't work - I imagine that the "+" is not a valid character (or more to the point is a special character).
I've tried to escape it with one and two "\" - to no avail.
Any suggestions as to how this can be done? If at all?
cheers
Ian
|
|
0
|
|
|
|
Reply
|
iandiddamsorg (57)
|
7/6/2012 10:11:23 AM |
|
eg obj.conf "effort" (that doesn't work)
NameTrans fn="redirect" from="/ipd+" url="http://www.deja.com"
I've also tried (to no avail)
NameTrans fn="redirect" from="/ipd\+" url="http://www.deja.com"
NameTrans fn="redirect" from="/ipd\\+" url="http://www.deja.com"
cheers
ian
|
|
0
|
|
|
|
Reply
|
iandiddamsorg (57)
|
7/6/2012 10:43:41 AM
|
|
iandiddamsorg@googlemail.com wrote:
> eg obj.conf "effort" (that doesn't work)
> NameTrans fn="redirect" from="/ipd+" url="http://www.deja.com"
> I've also tried (to no avail)
> NameTrans fn="redirect" from="/ipd\+" url="http://www.deja.com"
> NameTrans fn="redirect" from="/ipd\\+" url="http://www.deja.com"
An + in a URL would normally indicate a URL-encode space.
Is that + really a + literal +?
Then maybe it should be given with its URL-encode version (%2B),
or if its just signifies a space that try putting the space there
/Niels
--
Niels Baggesen -- @home -- �rhus -- Denmark -- niels@baggesen.net
The purpose of computing is insight, not numbers -- R W Hamming
|
|
0
|
|
|
|
Reply
|
nba (32)
|
7/6/2012 1:28:02 PM
|
|
Hi Niels,
no, it is literally a "+" - that is a plus sign.
We've got around this with some scripted code on the web server - the developers have done something with some smoke and mirrors. I tried %2B 9and %2b) but to no avail.
cheers
Ian
|
|
0
|
|
|
|
Reply
|
iandiddamsorg (57)
|
7/9/2012 4:49:07 PM
|
|
iandiddamsorg@googlemail.com wrote:
> I have been asked to provide a URL redirect in sun java web server for an initial path that includes a "+" in its path
>
> eg.
>
> /ipd+ http://www.deja.com
>
> That doesn't work - I imagine that the "+" is not a valid character (or more to the point is a special character).
>
> I've tried to escape it with one and two "\" - to no avail.
>
> Any suggestions as to how this can be done? If at all?
yuck. iplanet pattern matching stuff is extremely goofy, and it's as good
as it will ever get in 7.
sunsolve actually suggested something like writing your own nsapi plugin
if you had to do stuff like this.
|
|
0
|
|
|
|
Reply
|
presence (537)
|
7/10/2012 1:31:15 AM
|
|