diff --git a/thot.lisp b/thot.lisp
index 5cfd9d6..a43c48e 100644
--- a/thot.lisp
+++ b/thot.lisp
@@ -494,7 +494,7 @@ The requested url "
(let ((mode (the fixnum (stat-mode stat))))
(cond ((s-isdir mode)
(dolist (index *index-files*)
- (let ((index-path (str local-path index)))
+ (let ((index-path (str local-path "/" index)))
(when (probe-file index-path)
(return `(file ,index-path))))))
((s-isreg mode)