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' }, ]) ] }