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:
parent
b9228a0105
commit
70cbc56ae4
1 changed files with 8 additions and 4 deletions
12
urlcheck.sh
12
urlcheck.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue