summaryrefslogtreecommitdiff
path: root/files/common/www/cgi-bin/redirect
blob: 9b417dbdb2b14d8460ec2d0dc3c74a01088d0778 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
echo -en "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n"
echo -en "Pragma: no-cache\r\n"
echo -en "Expires: -1\r\n"
echo -en "Status: 302 Temporary Redirect\r\n"
echo -en "Location: http://"`uci get network.mesh.ipaddr`"/cgi-bin/splash?"`/bin/urlencode "$HTTP_HOST$REQUEST_URI"`"\r\n"
echo -en "\r\n"
exit 0
contact: Jan Huwald // Impressum