redirect if missing path

This commit is contained in:
zzz
2011-09-04 18:18:05 +00:00
parent 031446bfe6
commit b089202d1f

View File

@ -52,7 +52,13 @@ then
exit 0
fi
#
PATH_INFO=${PATH_INFO:-/}
# redirect viewmtn to viewmtn/ or else the links don't work right
if [ "x$PATH_INFO" = "x" ]
then
echo -e "Status: 301 Moved\r"; echo -e "Location: http://${HTTP_HOST}${SCRIPT_NAME}/\r"; echo -e "\r"
exit 0
fi
REQUEST_METHOD=${REQUEST_METHOD:-HEAD}
T=${PATH_INFO%/rss}
if [ "$T" != "$PATH_INFO" ]