Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

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.

The Idoc Script function setRedirectUrl will do what you need.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top