fixing up robots.txt

v1.18.x
Julian Lam 11 years ago
parent 08b2106e0f
commit f28c690f2f

@ -248,7 +248,7 @@ Controllers.robots = function (req, res) {
res.send(meta.config["robots.txt"]); res.send(meta.config["robots.txt"]);
} else { } else {
res.send("User-agent: *\n" + res.send("User-agent: *\n" +
"Disallow: /admin/\n" + "Disallow: " + nconf.get('relative_path') + "/admin/\n" +
"Sitemap: " + nconf.get('url') + "/sitemap.xml"); "Sitemap: " + nconf.get('url') + "/sitemap.xml");
} }
}; };

Loading…
Cancel
Save