[Templates] Doing HTML redirects from an Apache::Template page

[prev] [thread] [next] [Date index for 2004/07/06]

From: Mike Whitaker
Subject: [Templates] Doing HTML redirects from an Apache::Template page
Date: 11:07 on 06 Jul 2004
This might not be news to some folks, I guess, but I'm feeling smug:

Need
	TT2Params request

and then

[% SET request.headers_out.Location = "http://foo.com/yougoofed.tt2";;
    CALL request.env.status("301") %]

I am working on Apache2 with a patched (courtesy of Geoffrey Young) 
Apache::Template with a couple of further patches by me (just sent 
those to him), but the concept seems sound!


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Doing HTML redirects from an Apache::Template page
Mike Whitaker 11:07 on 06 Jul 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52