CFLOCATION Does Not Work After CFFLUSH Revisited

In my old post CFLOCATION Does Not Work After CFFLUSH I mentioned the solution to move to another template by Peter Freitag using the CFHEADER tag.

Now I’m sharing another solution that I found online (forgot where!), more elegant and geeky. That works within scheduled tasks too.

1
2
3
4
5
6
<cfscript>

local.myURL = "http://myNextURL";
getPageContext().getResponse().sendRedirect(local.myURL);

</cfscript>
Bookmark and Share

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>