diff --git a/lib/util/index.js b/lib/util/index.js
index <HASH>..<HASH> 100644
--- a/lib/util/index.js
+++ b/lib/util/index.js
@@ -951,15 +951,19 @@ function decodePath(path) {
 function getRuleFiles(rule) {
   var files = rule.files || [getPath(getUrl(rule))];
   var root = rule.root;
-  return files.map(function(file) {
-    var filename = '';
+  var result = [];
+  files.map(function(file) {
     file = decodePath(file);
+    file = fileMgr.convertSlash(root ? join(root, file) : file);
     if (END_WIDTH_SEP_RE.test(file)) {
-      filename = 'index.html';
+      result.push(file.slice(0, -1));
+      file = root ? join(root, file, 'index.html') : join(file, 'index.html');
+      result.push(fileMgr.convertSlash(file));
+    } else {
+      result.push(file);
     }
-    file = root ? join(root, file, filename) : join(file, filename);
-    return fileMgr.convertSlash(file);
   });
+  return result;
 }
 
 exports.getRuleFiles = getRuleFiles;
refactor: getPath