fix the alias support
[project/uhttpd.git] / file.c
diff --git a/file.c b/file.c
index 6b5020f..009acbd 100644 (file)
--- a/file.c
+++ b/file.c
@@ -828,7 +828,7 @@ static char *uh_handle_alias(char *old_url)
                int new_len;
                int path_len = 0;
 
-               if (uh_path_match(alias->alias, old_url))
+               if (!uh_path_match(alias->alias, old_url))
                        continue;
 
                if (alias->path)