From 6269f3e96e575d70defe2977c02aca0ae9ce291f Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 7 Sep 2018 11:58:09 +0200 Subject: [PATCH] Fix robot txt for embauche --- netlify.toml | 12 ++++++++++++ source/sites/embauche.gouv.fr/robots.txt | 2 ++ .../sites/mycompanyinfrance.fr/robots.txt | 0 source/webpack.common.js | 3 ++- 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 source/sites/embauche.gouv.fr/robots.txt rename robots.txt => source/sites/mycompanyinfrance.fr/robots.txt (100%) diff --git a/netlify.toml b/netlify.toml index c627c676b..e14dcb857 100644 --- a/netlify.toml +++ b/netlify.toml @@ -8,20 +8,32 @@ from = "https://infrance.org/*" to = "/infrance.html" status = 200 +[[redirects]] +from = "https://mycompanyinfrance.fr/robots.txt" +to = "/robots.infrance.txt" +status = 200 + [[redirects]] from = "https://mycompanyinfrance.fr/*" to = "/infrance.html" status = 200 + [[redirects]] from = "https://embauche.beta.gouv.fr/modules/v2/*" to = "/:splat" +[[redirects]] +from = "https://embauche.beta.gouv.fr/robots.txt" +to = "/robots.embauche.txt" +status = 200 + [[redirects]] from = "https://embauche.beta.gouv.fr/*" to = "/embauche.html" status = 200 + [[redirects]] from = "/*" query = {s = "e"} diff --git a/source/sites/embauche.gouv.fr/robots.txt b/source/sites/embauche.gouv.fr/robots.txt new file mode 100644 index 000000000..eb0536286 --- /dev/null +++ b/source/sites/embauche.gouv.fr/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/robots.txt b/source/sites/mycompanyinfrance.fr/robots.txt similarity index 100% rename from robots.txt rename to source/sites/mycompanyinfrance.fr/robots.txt diff --git a/source/webpack.common.js b/source/webpack.common.js index d194fd186..79797bce6 100644 --- a/source/webpack.common.js +++ b/source/webpack.common.js @@ -100,7 +100,8 @@ module.exports = { new CopyPlugin([ './manifest.webmanifest', './source/sites/embauche.gouv.fr/images/logo', - './robots.txt' + { from: './source/sites/embauche.gouv.fr/robots.txt', to: 'robots.embauche.txt' }, + { from: './source/sites/mycompanyinfrance.fr/robots.txt', to: 'robots.infrance.txt' }, ]) ] }