Fix robot txt for embauche

pull/344/head
Johan Girod 2018-09-07 11:58:09 +02:00
parent f0fa59bec3
commit 6269f3e96e
4 changed files with 16 additions and 1 deletions

View File

@ -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"}

View File

@ -0,0 +1,2 @@
User-agent: *
Disallow:

View File

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