Reputation: 2075
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
Reputation: 1480
The Idoc Script function setRedirectUrl will do what you need.
Example: <$setRedirectUrl("some url")$>
Upvotes: 0
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
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
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