diff --git a/htmldoc/file.c b/htmldoc/file.c
index 3a49d926..52a4378a 100644
--- a/htmldoc/file.c
+++ b/htmldoc/file.c
@@ -934,6 +934,8 @@ file_method(const char *s) /* I - Filename or URL */
return ("ftp");
else if (strncmp(s, "mailto:", 7) == 0)
return ("mailto");
+ else if (strncmp(s, "file:", 5) == 0)
+ return ("file");
else
return (NULL);
}