Kwebble
Kwebble

Reputation: 2075

How to create HTTP 301 redirect from Stellent (Oracle UCM) script

Is it possible to send a HTTP response with a permanent redirect from a Stellent (now called Oracle UCM) website? We're using version 7.5.2 with iDoc script.

We can use the iDoc function setHttpHeader() to send the Location HTTP header, but how to send the HTTP response code 301, to signal the permanent redirect to the browser?

Upvotes: 1

Views: 1436

Answers (4)

Jonathan Hult
Jonathan Hult

Reputation: 1480

The Idoc Script function setRedirectUrl will do what you need.

Example: <$setRedirectUrl("some url")$>

Upvotes: 0

James Martin
James Martin

Reputation: 11

In Site Studio, if you right click a folder and choose "Select Primary Page" and then choose "Use an external URL" radio button, the page will be redirected as a 301 redirect.

Upvotes: 1

sandy
sandy

Reputation: 26

There is component "IdocScriptRedirect" avialable on meta link for 301 redirect. you can request oracle support to provide you download link.

Upvotes: 1

bex
bex

Reputation:

No... that function appends new HTTP headers, and the response code is set prior to that. You'll need a custom IdocScript function to get that behavior.

Upvotes: 0

Related Questions