aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Facing problem while trying 301 Redirect Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Facing problem while trying 301 Redirect" Watch "Facing problem while trying 301 Redirect" New topic
Author

Facing problem while trying 301 Redirect

Arti Soni
Greenhorn

Joined: May 04, 2007
Posts: 9
Hi,
I need to rewrite all 302 Moved Temporarily responses to 301 Moved Permanently responses. I have added this code in the obj.conf but still getting the 302 response -
<Client code="302">
Output fn="set-variable" error="301 Moved Permanently" noaction="true"
</Client>

Have tried writing the above in two other ways as well -
I) The above client tag right under the <Object name="default"> tag
II) IN the following way at the end of obj.conf -
<Object ppath=�path�>
<Client code=�302�>
Output fn=�set-variable� error=�301� noaction=�true�
</Client>
</Object>

The server i am using is iPlanet 6.1.

Can someone please assist.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8259

Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Facing problem while trying 301 Redirect
 
Similar Threads
Possible to change status code sent by response.sendRedirect
Facing problem in trying a 301 Redirect
jsp:forward page="/
redirect issues
How to configure in obj.conf, Failover of cluster in Weblogic