Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sun webserver, 301 and 302 redirect requirements

22 views
Skip to first unread message

iandid...@googlemail.com

unread,
Oct 3, 2012, 12:52:21 PM10/3/12
to
Sun Java System Web Server 7.0U8 B01/20/2010 09:38

sun webserver by default redirects as 302 redirects.

The webserver in use, has obj.conf with the following to force all redirects to be 301s


<Client code="302">
Output fn="set-variable" error="301" noaction="true"
</Client>


So far so good.

However... now we have a requirement for a 302 redirect.

I've tried

NameTrans fn="redirect" from="/diddstest/" url="http://www.bbc.co.uk" status="302"

but that doesn't work

So I then tried


AuthTrans fn="redirect" url="http://www.bbc.co.uk" status="302"
NameTrans fn="redirect" from="/diddstest/" url="http://www.bbc.co.uk"

But that didn't work either.

So my question is...

given all the other redirects must be 301s, and with code in place to acheive that, how can I now ensure a "one off" redirect is a 302?

cheers

Ian

iandid...@googlemail.com

unread,
Oct 3, 2012, 12:54:07 PM10/3/12
to
... sorry... by "that didn't work" means that the redirect is still a 301

cheers

ian
0 new messages