[Xitami] CGI header access?

Phillip C. Wilson wilson at wha.com
Sat Aug 9 13:56:28 CEST 2008


I've been using Xitami since 2000 and am reluctant to change web servers
'cause everything has worked perfectly.

I have a CGI exe as my default "page" which builds dynamic pages for me,
HTML only no HTTP headers.

I want to make a change in that for some domains I want that same CGI to
issue a 3-line redirection - just issue HTTP headers and no HTML (bringing
it back to the same server but with a different name and it has to be a 301
Redirection):

Writeln('HTTP/1.0 301 Moved Permanently');
Writeln('Location: http://NewDomain.com/page1.htm');
Writeln('');

Question(s):  Can I simply put this code in the same default CGI?  Do CGIs
handle headers?  If not, is there another way to issue a redirection? A
redirection under program control?

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xitami.org/pipermail/xitami/attachments/20080809/fbe9bcfd/attachment.htm 


More information about the Xitami mailing list