mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixing up robots.txt
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user