# Indexes
RewriteRule ^$ '/home'
-#RewriteRule ^$ '/home/about'
-#RewriteRule ^home$ '/home/about'
# Pileus rewrites
+RewriteCond %{REQUEST_URI} !^/[^/]*/files/
+RewriteCond %{REQUEST_URI} !^/(dev|git)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* 'pileus.cgi/$0'
if (nameval) next->name = nameval;
if (!next->path) next->path = g_strdup(entries[i]);
if (!next->name) next->name = g_strdup(entries[i]);
+ if (!parts[0] && !strcmp(next->base, "index"))
+ next->show = SHOW_ACTIVE;
cur = cur->next = next;
}
g_strfreev(entries);
continue;
if ((next = get_menu_entry(prefix, entries[i])))
cur = cur->next = next;
+ if (!strcmp(cur->base, "index"))
+ cur->show = SHOW_HIDDEN;
}
g_strfreev(entries);
g_key_file_free(conf);
cur->kids = get_menu_rec(cur->path, parts+1);
cur->show = SHOW_ACTIVE;
}
- if (!strcmp(cur->base, "index"))
- cur->show = SHOW_HIDDEN;
}
error: