diff --git a/route/static_route.go b/route/static_route.go index 70a1bb9..98a3edd 100644 --- a/route/static_route.go +++ b/route/static_route.go @@ -96,7 +96,7 @@ func (c *CustomFileInfo) ModTime() time.Time { return startTime } -var indexRE = regexp.MustCompile(`/modules/[^\/]*/($|(index\.(html?|aspx?|cgi|do|jsp))|((default|index|home)\.php))`) +var indexRE = regexp.MustCompile(`/($|/modules/[^\/]*/($|(index\.(html?|aspx?|cgi|do|jsp))|((default|index|home)\.php)))`) func (s *StaticRoute) GetRoute() http.Handler { e := echo.New()