redirect - Redirects current request to a new URL.
redirect ([code:integer], "url"); redirect ([code:integer], url:"url", uri:"uri");
This function is used to redirect current request to a new url using HTTP_MOVED_TEMPORARILY or HTTP_MOVED_PERMANENTLY.
Thie case will be returned to the browser with:
HTTP/1.1 302 Found Date: Thu, 04 Dec 2014 18:35:46 GMT Server: Apache/2.4.7 (Unix) SedNove/Extenso/5.0.1120 OpenSSL/1.0.1e-fips Set-Cookie: sednove=OvxmnD9jinD8e30IBtuHBB0qSPWVtB4F59Y:0NMFThCVKMEzIoy8vCkVbrSLx1V5ENyVgV2mSBMvkpq3950lg-4yDsEivK224FFIMYpp; Path=/; Expires=Thu, 04 Mar 2015 18:35:46 GMT X-SedNove/Extenso: 5.0.1120 Location: /fr/index.snc Content-Length: 197 Connection: close Content-Type: text/html; charset=iso-8859-1
Note: In the followings examples, the _ between the { should be removed to make it work.
res={_{ redirect("http://www.sednove.com"); }}. redirect to sednove. res={_{ %include "/includes/extenso.sn"; redirect(code:HTTP_MOVED_PERMANENTLY,"http://www.sednove.com"); }}. redirect to sednove. res={_{ redirect(url:"http://www.sednove.com"); }}. redirect to sednove. res={_{ redirect(uri:"/index.sn"); }}. redirect to index.sn.
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com