diff --git a/_attachments/pages/index.html b/_attachments/pages/index.html
index 800f7221..87207e7f 100644
--- a/_attachments/pages/index.html
+++ b/_attachments/pages/index.html
@@ -57,7 +57,7 @@
"disk_size": formatDiskSize(dbInfo.disk_size)
});
- if( config.vhost ) dbInfo.db_name = 'db';
+ if( config.vhost ) dbInfo.db_name = "api";
render( 'db', 'stats', dbInfo );
render( 'bulk', 'bulk', dbInfo );
@@ -72,7 +72,7 @@
}
- $.getJSON( config.baseURL + 'db', gotDb );
+ $.getJSON( config.baseURL + "api", gotDb );
$( '.csv' ).live('click', ( function( e ) {
window.location.href = csvUrl;
diff --git a/rewrites.json b/rewrites.json
index 71db07a3..69c2b60d 100644
--- a/rewrites.json
+++ b/rewrites.json
@@ -27,12 +27,24 @@
"to": "_list/urlencode/headers",
"from": "headers"
},
- {
- "to": "../..",
- "from": "db"
- },
- {
- "to": "../../*",
- "from": "db/*"
- }
+ {
+ "to": "./",
+ "from": "ddoc"
+ },
+ {
+ "to": "./",
+ "from": "api/_design/ddoc"
+ },
+ {
+ "to": "./*",
+ "from": "api/_design/ddoc/*"
+ },
+ {
+ "to": "../../",
+ "from": "api"
+ },
+ {
+ "to": "../../*",
+ "from": "api/*"
+ }
]
\ No newline at end of file