Page 1 of 1

Put Header Used for Redirects

Posted: Sun Nov 30, 2014 11:38 pm
by Siddhanathaswami
Aloha,

I'm having a strange issue with redirects and http headers on a Ubuntu 14 server running Apache 2.4 and LiveCode 6.7 Community Server.

This just returns an "Internal Server Error" when in a file such as redirecttest.lc:

<?lc
put header "Status: 301 Moved Permanently"
put header "Location: /index.shtml"
?>

I don't think it's an error in server config as I have something almost identical working elsewhere on the same server.

Any ideas?

Re: Put Header Used for Redirects

Posted: Wed Dec 03, 2014 1:07 am
by matthiasr
Hi,

just add another put statement at the end of the script.

For example

Code: Select all

<?lc
put header "Status: 301 Moved Permanently"
put header "Location: /index.shtml"
put ""
?>
That should do.

HTH

Matthias