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?
Put Header Used for Redirects
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: Put Header Used for Redirects
Hi,
just add another put statement at the end of the script.
For example
That should do.
HTH
Matthias
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 ""
?>
HTH
Matthias