1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Update urlcheck.sh

This commit is contained in:
niansa 2017-03-09 23:32:54 +01:00 committed by GitHub
parent b9228a0105
commit 70cbc56ae4

View file

@ -8,8 +8,12 @@ fi
# Verhindere "/"-bug
if [ -d "$FILE" ]; then
newURL="$URL"'/'
export URL="$newURL"
newFILE="$FILE"'/'
export FILE="$newFILE"
if [[ "$URL" != */ ]]; then
#newURL="$URL"'/'
#export URL="$newURL"
#newFILE="$FILE"'/'
#export FILE="$newFILE"
echo 'HTTP/1.0 302 Moved permanently
Location: '"${WEBSITE}${URL}"'/'
fi
fi