2021-05-10 09:54:56 +00:00
|
|
|
[[headers]]
|
|
|
|
for = "/*"
|
|
|
|
[headers.values]
|
|
|
|
# TODO : self-host emojies to remove twemoji.maxcdn.com
|
|
|
|
# https://github.com/betagouv/mon-entreprise/issues/1219
|
|
|
|
Content-Security-Policy = "default-src 'self' mon-entreprise.fr; style-src 'self' 'unsafe-inline' mon-entreprise.zammad.com; connect-src 'self' *.sentry.io raw.githubusercontent.com *.xiti.com mon-entreprise.zammad.com; form-action 'self' *.sibforms.com *.sentry.io mon-entreprise.zammad.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' entreprise.data.gouv.fr geo.api.gouv.fr *.xiti.com stonly.com code.jquery.com mon-entreprise.zammad.com; img-src 'self' data: https://twemoji.maxcdn.com *.xiti.com user-images.githubusercontent.com; frame-src 'self' https://www.youtube-nocookie.com https://codesandbox.io"
|
|
|
|
|
2020-06-23 11:19:05 +00:00
|
|
|
############
|
|
|
|
# Redirects following architectural changes
|
2019-10-22 12:25:06 +00:00
|
|
|
|
2021-03-18 12:15:07 +00:00
|
|
|
# :SITE_<name> is a placeholder replaced before deploy (depends on the environment)
|
2019-10-22 12:25:06 +00:00
|
|
|
|
2021-03-18 12:15:07 +00:00
|
|
|
# FR | coronavirus -> simulateurs/chômage-partiel
|
2020-05-15 14:16:13 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/coronavirus"
|
|
|
|
to=":SITE_FR/simulateurs/ch%C3%B4mage-partiel"
|
2019-10-22 12:25:06 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-05-15 14:16:13 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/%C3%A9conomie-collaborative"
|
|
|
|
to=":SITE_FR/simulateurs/%C3%A9conomie-collaborative"
|
2019-10-22 12:25:06 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-06-23 11:19:05 +00:00
|
|
|
# FR | salarié -> salaire-brut-net
|
2020-06-06 07:13:08 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/simulateurs/salari%C3%A9"
|
|
|
|
to=":SITE_FR/simulateurs/salaire-brut-net"
|
2020-06-06 07:13:08 +00:00
|
|
|
status = 301
|
2019-01-23 17:04:22 +00:00
|
|
|
|
2020-06-25 14:50:25 +00:00
|
|
|
# FR | assimilé-salarié -> dirigeant-sasu
|
2020-06-25 14:43:09 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/simulateurs/assimil%C3%A9-salari%C3%A9"
|
|
|
|
to=":SITE_FR/simulateurs/dirigeant-sasu"
|
2020-06-25 14:43:09 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-08-31 14:21:38 +00:00
|
|
|
# FR | s%C3%A9curit%C3%A9-sociale/auto-entrepreneur -> simulateurs/auto-entrepreneur
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/s%C3%A9curit%C3%A9-sociale/auto-entrepreneur"
|
|
|
|
to=":SITE_FR/simulateurs/auto-entrepreneur"
|
2020-08-31 14:21:38 +00:00
|
|
|
status = 301
|
2021-02-26 17:55:38 +00:00
|
|
|
|
2020-11-05 08:31:47 +00:00
|
|
|
# FR | sécurité-social/salarié -> simulateurs/salaire-brut-net
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/s%C3%A9curit%C3%A9-sociale/salari%C3%A9"
|
|
|
|
to=":SITE_FR/simulateurs/salaire-brut-net"
|
2020-11-05 08:31:47 +00:00
|
|
|
statys = 301
|
2020-06-06 11:45:02 +00:00
|
|
|
|
2020-11-05 08:31:47 +00:00
|
|
|
# FR | sécurité-social/salarié -> simulateurs/salaire-brut-net
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from=":SITE_FR/s%C3%A9curit%C3%A9-sociale/salari%C3%A9"
|
|
|
|
to=":SITE_FR/simulateurs/salaire-brut-net"
|
2020-11-05 08:31:47 +00:00
|
|
|
status = 301
|
|
|
|
|
2019-09-18 15:22:21 +00:00
|
|
|
# SEO redirect
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/documentation/contrat-salari%C3%A9/salaire/*"
|
|
|
|
to = ":SITE_FR/documentation/contrat-salari%C3%A9/r%C3%A9mun%C3%A9ration/:splat"
|
2019-09-18 15:22:21 +00:00
|
|
|
status = 301
|
2019-09-06 14:38:42 +00:00
|
|
|
|
2020-09-30 16:35:44 +00:00
|
|
|
|
|
|
|
# Embauche redirection settings
|
|
|
|
[[redirects]]
|
2021-04-20 15:32:11 +00:00
|
|
|
from = "https://mon-entreprise.fr/simulation"
|
2020-09-30 16:35:44 +00:00
|
|
|
to = "https://mon-entreprise.fr/s%C3%A9curit%C3%A9-sociale/salari%C3%A9"
|
|
|
|
status = 301
|
|
|
|
|
2021-04-20 15:32:11 +00:00
|
|
|
## Old iframe adress
|
2020-09-30 16:35:44 +00:00
|
|
|
[[redirects]]
|
2021-04-20 15:32:11 +00:00
|
|
|
from = "https://mon-entreprise.fr/modules/v2/dist/simulateur.js"
|
2020-09-30 16:35:44 +00:00
|
|
|
to = "https://mon-entreprise.fr/simulateur-iframe-integration.js"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
[[redirects]]
|
2021-04-20 15:32:11 +00:00
|
|
|
from = "https://mon-entreprise.fr/dist/simulateur.js"
|
2020-09-30 16:35:44 +00:00
|
|
|
to = "https://mon-entreprise.fr/simulateur-iframe-integration.js"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
|
2021-03-18 12:15:07 +00:00
|
|
|
############
|
|
|
|
# Redirects for single page app config & prerendering purpose
|
|
|
|
|
|
|
|
|
|
|
|
# Publicode
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_PUBLICODES/*"
|
|
|
|
to = "/publicodes.html"
|
|
|
|
status = 200
|
|
|
|
|
2020-09-30 16:35:44 +00:00
|
|
|
|
2021-02-26 17:55:38 +00:00
|
|
|
# Mon-entreprise.fr
|
2018-12-10 14:13:14 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/robots.txt"
|
2019-09-18 15:22:21 +00:00
|
|
|
to = "/robots.infrance.txt"
|
|
|
|
status = 200
|
2018-12-10 14:13:14 +00:00
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/sitemap.txt"
|
2019-09-18 15:22:21 +00:00
|
|
|
to = "/sitemap.infrance.fr.txt"
|
|
|
|
status = 200
|
2018-12-10 14:13:14 +00:00
|
|
|
|
2018-11-13 15:47:49 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR"
|
2019-09-18 15:22:21 +00:00
|
|
|
to = "/prerender/mon-entreprise/index.html"
|
|
|
|
status = 200
|
2019-04-18 14:30:11 +00:00
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/cr%C3%A9er"
|
2020-01-13 16:26:13 +00:00
|
|
|
to = "/prerender/mon-entreprise/cr%C3%A9er/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/g%C3%A9rer"
|
2020-01-13 16:26:13 +00:00
|
|
|
to = "/prerender/mon-entreprise/g%C3%A9rer/index.html"
|
|
|
|
status = 200
|
|
|
|
|
2020-03-22 22:14:51 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/simulateurs/ch%C3%B4mage-partiel"
|
2020-06-06 07:13:08 +00:00
|
|
|
to = "/prerender/mon-entreprise/simulateurs/ch%C3%B4mage-partiel/index.html"
|
2020-03-22 22:14:51 +00:00
|
|
|
status = 200
|
|
|
|
|
2020-01-13 16:26:13 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/simulateurs/salaire-brut-net"
|
2020-09-29 14:28:03 +00:00
|
|
|
to = "/prerender/mon-entreprise/simulateurs/salaire-brut-net/index.html"
|
2020-01-13 16:26:13 +00:00
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/simulateurs/auto-entrepreneur"
|
2020-01-13 16:26:13 +00:00
|
|
|
to = "/prerender/mon-entreprise/simulateurs/auto-entrepreneur/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/simulateurs/ind%C3%A9pendant"
|
2020-01-13 16:26:13 +00:00
|
|
|
to = "/prerender/mon-entreprise/simulateurs/ind%C3%A9pendant/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/simulateurs/dirigeant-sasu"
|
2020-09-29 14:28:03 +00:00
|
|
|
to = "/prerender/mon-entreprise/simulateurs/dirigeant-sasu/index.html"
|
2020-01-13 16:26:13 +00:00
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/simulateurs/artiste-auteur"
|
2020-01-13 16:26:13 +00:00
|
|
|
to = "/prerender/mon-entreprise/simulateurs/artiste-auteur/index.html"
|
2019-09-18 15:22:21 +00:00
|
|
|
status = 200
|
2019-04-18 14:30:11 +00:00
|
|
|
|
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/iframes/simulateur-embauche"
|
2019-09-18 15:22:21 +00:00
|
|
|
to = "/prerender/mon-entreprise/iframes/simulateur-embauche/index.html"
|
|
|
|
status = 200
|
2019-04-18 14:30:11 +00:00
|
|
|
|
2020-03-22 22:14:51 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/iframes/simulateur-chomage-partiel"
|
2020-03-22 22:14:51 +00:00
|
|
|
to = "/prerender/mon-entreprise/iframes/simulateur-chomage-partiel/index.html"
|
|
|
|
status = 200
|
|
|
|
|
2020-10-12 13:44:40 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/iframes/pamc"
|
2020-10-12 13:44:40 +00:00
|
|
|
to = "/prerender/mon-entreprise/iframes/pamc/index.html"
|
|
|
|
status = 200
|
|
|
|
|
2018-11-13 15:47:49 +00:00
|
|
|
[[redirects]]
|
2021-03-18 12:15:07 +00:00
|
|
|
from = ":SITE_FR/*"
|
2019-09-18 15:22:21 +00:00
|
|
|
to = "/mon-entreprise.html"
|
|
|
|
status = 200
|
2021-03-18 12:15:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Mycompanyinfrance
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://www.mycompanyinfrance.fr/*"
|
|
|
|
to = "https://mycompanyinfrance.fr/:splat"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://www.mycompanyinfrance.com/*"
|
|
|
|
to = "https://mycompanyinfrance.fr/:splat"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://mycompanyinfrance.com/*"
|
|
|
|
to = "https://mycompanyinfrance.fr/:splat"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_EN/robots.txt"
|
|
|
|
to = "/robots.infrance.txt"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_EN/sitemap.txt"
|
|
|
|
to = "/sitemap.infrance.en.txt"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_EN"
|
|
|
|
to = "/prerender/infrance/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_EN/calculators/salary"
|
|
|
|
to = "/prerender/infrance/calculators/salary/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_EN/iframes/simulateur-embauche"
|
|
|
|
to = "/prerender/infrance/iframes/simulateur-embauche/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = ":SITE_EN/*"
|
|
|
|
to = "/infrance.html"
|
|
|
|
status = 200
|