Put Header Used for Redirects
Posted: Sun Nov 30, 2014 11:38 pm
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?
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?