fix bug, when request to a dir and without "/" in the end, response 301 and  redirect to the dir with "/"