Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sun ONE web server 6.1. Redirect with parameters in "from"

807567Mar 18 2009 — edited Mar 19 2009
Hi,

we are using Sun ONE web server 6.1 SP 4.

We are trying to setup our web server to make 301 permanent redirections from several URIs to other URL. The problem is that our URIs need to contain a query string (ie, are of the form "/servlet?cat=19100&med=674").

Our obj.conf looks like the following (abreviated for clarity)
<Object name="default">
....
NameTrans fn="redirect" from="/servlet?cat=19100&med=674" url="http://{our domain}/servlet?cat=68600&med=580"
NameTrans fn="redirect" from="/index.html" url="/servlet"
....
<Client code="302">
Output fn="set-variable" error="301" noaction="true"
</Client>
</Object>
...
The first "redirection" (the one with parameters in the URL) entry is not working, but the second is.

I suspect the problem is that Sun ONE doesn't support having URL parameters in the "from", but I haven't found anything stating it. Do you think this is the problem? In that case, is there any workaround that doesn't imply writing a NSAPI plugin?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2009
Added on Mar 18 2009
3 comments
398 views