diff --git a/urlcheck.sh b/urlcheck.sh index 180a75e..2686715 100644 --- a/urlcheck.sh +++ b/urlcheck.sh @@ -29,14 +29,14 @@ if [ -f "${FILE}index.php" ]; then FILE="${FILE}index.php" fi -# Answer 404 if the file doesn't exist +# Respond 404 if the file doesn't exist if [ ! -e "$FILE" ]; then STATUS='HTTP/1.0 404 Not Found' CONTENTTYPE='text/html' FILE="$ERROR404" fi -# Answer 403 if the file isn't readable +# Respond 403 if the file isn't readable if [ ! -r "$FILE" ]; then STATUS='HTTP/1.0 403 Forbidden' CONTENTTYPE='text/html'