Merge pull request #344 from betagouv/robots.txt

Répare le robots.txt pour embauche.beta.gouv.fr
pull/348/head
Johan Girod 2018-09-07 12:15:43 +02:00 committed by GitHub
commit e808ad1340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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' },
])
]
}