How To Redirect To A URL Based On A Query String in Oracle iPlanet Web Server ?

(Doc ID 1367202.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle iPlanet Web Server - Version 6.1 and later
Information in this document applies to any platform.

Goal


On iPlanet Web Server 6.1 and 7.0, how do you configure the web server to do redirects based on the query string, where there are many query strings to redirect?

For example,

https://www.xyz.com/def/index.jsp?query=1001 should be redirected to https://www.xyz.com/abc.jsp?query=1001
https://www.xyz.com/def/index.jsp?query=1002 should be redirected to https://www.xyz.com/abc.jsp?query=1002
https://www.xyz.com/def/index.jsp?query=1003 should be redirected to https://www.xyz.com/abc.jsp?query=1003

So based on query value passed in to the server, we have to redirect to corresponding url while keeping the query string name value in the uri.

The configuration requires a redirect for many query strings and cannot always use the following:

<Client uri="/def/index.jsp" query="query=07001">
NameTrans fn="redirect" from="" url="https://www.xyz.com/abc.jsp?query=07001"
</Client>

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms