2020-06-23 11:19:05 +00:00
|
|
|
############
|
|
|
|
# Redirects following architectural changes
|
2019-10-22 12:25:06 +00:00
|
|
|
|
2020-06-25 14:43:09 +00:00
|
|
|
# FR | coronavirus -> simulateurs/chômage-partiel
|
2020-05-15 14:16:13 +00:00
|
|
|
[[redirects]]
|
2020-06-23 11:19:05 +00:00
|
|
|
from="/coronavirus"
|
|
|
|
to="/simulateurs/ch%C3%B4mage-partiel"
|
2019-10-22 12:25:06 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-05-15 14:16:13 +00:00
|
|
|
[[redirects]]
|
2020-06-23 11:19:05 +00:00
|
|
|
from="/%C3%A9conomie-collaborative"
|
|
|
|
to="/simulateurs/%C3%A9conomie-collaborative"
|
2019-10-22 12:25:06 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-06-23 11:19:05 +00:00
|
|
|
# EN | salaried -> salary
|
2020-05-15 14:16:13 +00:00
|
|
|
[[redirects]]
|
2020-06-23 11:19:05 +00:00
|
|
|
from="/simulators/salaried"
|
|
|
|
to="/calcultors/salary"
|
2019-10-22 12:25:06 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-06-25 14:43:09 +00:00
|
|
|
# EN | simulators -> calculators
|
2020-05-15 14:16:13 +00:00
|
|
|
[[redirects]]
|
2020-06-23 11:19:05 +00:00
|
|
|
from="/simulators/*"
|
|
|
|
to="/calcultors/:splat"
|
2019-10-22 12:25:06 +00:00
|
|
|
status = 301
|
|
|
|
|
2020-11-05 08:31:47 +00:00
|
|
|
|
2020-06-23 11:19:05 +00:00
|
|
|
# FR | salarié -> salaire-brut-net
|
2020-06-06 07:13:08 +00:00
|
|
|
[[redirects]]
|
2020-06-23 11:19:05 +00:00
|
|
|
from="/simulateurs/salari%C3%A9"
|
|
|
|
to="/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]]
|
|
|
|
from="/simulateurs/assimil%C3%A9-salari%C3%A9"
|
|
|
|
to="/simulateurs/dirigeant-sasu"
|
|
|
|
status = 301
|
|
|
|
|
2020-08-31 14:21:38 +00:00
|
|
|
# FR | s%C3%A9curit%C3%A9-sociale/auto-entrepreneur -> simulateurs/auto-entrepreneur
|
|
|
|
[[redirects]]
|
|
|
|
from="/s%C3%A9curit%C3%A9-sociale/auto-entrepreneur"
|
|
|
|
to="/simulateurs/auto-entrepreneur"
|
|
|
|
status = 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]]
|
|
|
|
from="/s%C3%A9curit%C3%A9-sociale/salari%C3%A9"
|
|
|
|
to="/simulateurs/salaire-brut-net"
|
|
|
|
status = 301
|
|
|
|
|
2019-09-18 15:22:21 +00:00
|
|
|
# SEO redirect
|
|
|
|
[[redirects]]
|
|
|
|
from = "/documentation/contrat-salari%C3%A9/salaire/*"
|
|
|
|
to = "/documentation/contrat-salari%C3%A9/r%C3%A9mun%C3%A9ration/:splat"
|
|
|
|
status = 301
|
2019-09-06 14:38:42 +00:00
|
|
|
|
2020-06-23 11:19:05 +00:00
|
|
|
############
|
|
|
|
# Redirects for single page app config & prerendering purpose
|
|
|
|
|
2020-09-29 14:28:03 +00:00
|
|
|
# Mycompanyinfrance
|
2019-01-07 12:32:02 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://www.mycompanyinfrance.fr/*"
|
|
|
|
to = "https://mycompanyinfrance.fr/:splat"
|
|
|
|
status = 301
|
2019-01-07 12:32:02 +00:00
|
|
|
|
2019-06-14 13:47:11 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://www.mycompanyinfrance.com/*"
|
|
|
|
to = "https://mycompanyinfrance.fr/:splat"
|
|
|
|
status = 301
|
2019-06-14 13:47:11 +00:00
|
|
|
|
2019-07-16 09:46:48 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mycompanyinfrance.com/*"
|
|
|
|
to = "https://mycompanyinfrance.fr/:splat"
|
|
|
|
status = 301
|
2019-07-16 09:46:48 +00:00
|
|
|
|
2018-08-24 15:53:56 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mycompanyinfrance.fr/robots.txt"
|
|
|
|
to = "/robots.infrance.txt"
|
|
|
|
status = 200
|
2018-08-24 15:53:56 +00:00
|
|
|
|
2018-10-26 11:25:40 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mycompanyinfrance.fr/sitemap.txt"
|
|
|
|
to = "/sitemap.infrance.en.txt"
|
|
|
|
status = 200
|
2018-10-26 11:25:40 +00:00
|
|
|
|
2018-07-26 14:48:36 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mycompanyinfrance.fr"
|
|
|
|
to = "/prerender/infrance/index.html"
|
|
|
|
status = 200
|
2018-07-26 15:32:14 +00:00
|
|
|
|
2018-09-07 09:58:09 +00:00
|
|
|
[[redirects]]
|
2020-09-30 16:35:44 +00:00
|
|
|
from = "https://mycompanyinfrance.fr/calculators/salary"
|
2020-09-29 14:28:03 +00:00
|
|
|
to = "/prerender/infrance/calculators/salary/index.html"
|
2019-09-18 15:22:21 +00:00
|
|
|
status = 200
|
2019-04-18 14:30:11 +00:00
|
|
|
|
|
|
|
[[redirects]]
|
2020-09-30 16:35:44 +00:00
|
|
|
from = "https://mycompanyinfrance.fr/iframes/simulateur-embauche"
|
2019-09-18 15:22:21 +00:00
|
|
|
to = "/prerender/infrance/iframes/simulateur-embauche/index.html"
|
|
|
|
status = 200
|
2018-09-07 09:58:09 +00:00
|
|
|
|
2018-07-26 15:32:14 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mycompanyinfrance.fr/*"
|
|
|
|
to = "/infrance.html"
|
|
|
|
status = 200
|
2018-08-08 09:23:06 +00:00
|
|
|
|
2020-09-29 14:28:03 +00:00
|
|
|
[[redirects]]
|
|
|
|
from = "/"
|
|
|
|
query = {s = "m"}
|
|
|
|
to = "/prerender/infrance/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "/*"
|
|
|
|
query = {s = "m"}
|
|
|
|
to = "/infrance.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
|
|
|
|
# Publicode
|
2019-10-03 14:03:03 +00:00
|
|
|
[[redirects]]
|
|
|
|
from = "https://publi.codes/*"
|
|
|
|
to = "/publicodes.html"
|
|
|
|
status = 200
|
|
|
|
|
2019-11-20 16:14:05 +00:00
|
|
|
[[redirects]]
|
|
|
|
from = "/*"
|
|
|
|
query = {s = "p"}
|
|
|
|
to = "/publicodes.html"
|
|
|
|
status = 200
|
|
|
|
|
2020-09-30 16:35:44 +00:00
|
|
|
|
|
|
|
# Embauche redirection settings
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://embauche.beta.gouv.fr/"
|
|
|
|
to = "https://mon-entreprise.fr/s%C3%A9curit%C3%A9-sociale/salari%C3%A9"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://embauche.beta.gouv.fr/simulation"
|
|
|
|
to = "https://mon-entreprise.fr/s%C3%A9curit%C3%A9-sociale/salari%C3%A9"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://embauche.beta.gouv.fr/documentation/*"
|
|
|
|
to = "https://mon-entreprise.fr/documentation/:splat"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
## Old iframe adresse
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://embauche.beta.gouv.fr/modules/v2/dist/simulateur.js"
|
|
|
|
to = "https://mon-entreprise.fr/simulateur-iframe-integration.js"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "https://embauche.beta.gouv.fr/dist/simulateur.js"
|
|
|
|
to = "https://mon-entreprise.fr/simulateur-iframe-integration.js"
|
|
|
|
status = 301
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-29 14:28:03 +00:00
|
|
|
# Mon-entreprise.fr
|
2018-12-10 14:13:14 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mon-entreprise.fr/robots.txt"
|
|
|
|
to = "/robots.infrance.txt"
|
|
|
|
status = 200
|
2018-12-10 14:13:14 +00:00
|
|
|
|
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "https://mon-entreprise.fr/sitemap.txt"
|
|
|
|
to = "/sitemap.infrance.fr.txt"
|
|
|
|
status = 200
|
2018-12-10 14:13:14 +00:00
|
|
|
|
2018-11-13 15:47:49 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "/"
|
|
|
|
to = "/prerender/mon-entreprise/index.html"
|
|
|
|
status = 200
|
2019-04-18 14:30:11 +00:00
|
|
|
|
|
|
|
[[redirects]]
|
2020-01-13 16:26:13 +00:00
|
|
|
from = "/cr%C3%A9er"
|
|
|
|
to = "/prerender/mon-entreprise/cr%C3%A9er/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "/g%C3%A9rer"
|
|
|
|
to = "/prerender/mon-entreprise/g%C3%A9rer/index.html"
|
|
|
|
status = 200
|
|
|
|
|
2020-03-22 22:14:51 +00:00
|
|
|
[[redirects]]
|
2020-06-06 07:13:08 +00:00
|
|
|
from = "/simulateurs/ch%C3%B4mage-partiel"
|
|
|
|
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]]
|
2020-09-29 14:28:03 +00:00
|
|
|
from = "/simulateurs/salaire-brut-net"
|
|
|
|
to = "/prerender/mon-entreprise/simulateurs/salaire-brut-net/index.html"
|
2020-01-13 16:26:13 +00:00
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "/simulateurs/auto-entrepreneur"
|
|
|
|
to = "/prerender/mon-entreprise/simulateurs/auto-entrepreneur/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "/simulateurs/ind%C3%A9pendant"
|
|
|
|
to = "/prerender/mon-entreprise/simulateurs/ind%C3%A9pendant/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
2020-09-29 14:28:03 +00:00
|
|
|
from = "/simulateurs/dirigeant-sasu"
|
|
|
|
to = "/prerender/mon-entreprise/simulateurs/dirigeant-sasu/index.html"
|
2020-01-13 16:26:13 +00:00
|
|
|
status = 200
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
from = "/simulateurs/artiste-auteur"
|
|
|
|
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]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "/iframes/simulateur-embauche"
|
|
|
|
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]]
|
|
|
|
from = "/iframes/simulateur-chomage-partiel"
|
|
|
|
to = "/prerender/mon-entreprise/iframes/simulateur-chomage-partiel/index.html"
|
|
|
|
status = 200
|
|
|
|
|
2020-10-12 13:44:40 +00:00
|
|
|
[[redirects]]
|
|
|
|
from = "/iframes/pamc"
|
|
|
|
to = "/prerender/mon-entreprise/iframes/pamc/index.html"
|
|
|
|
status = 200
|
|
|
|
|
|
|
|
|
2018-11-13 15:47:49 +00:00
|
|
|
[[redirects]]
|
2019-09-18 15:22:21 +00:00
|
|
|
from = "/*"
|
|
|
|
to = "/mon-entreprise.html"
|
|
|
|
status = 200
|
2018-11-13 15:47:49 +00:00
|
|
|
|
2020-05-08 10:04:00 +00:00
|
|
|
[build]
|
|
|
|
# Hack while waiting for netlify to support workspace
|
|
|
|
# https://github.com/netlify/build-image/issues/196
|
2020-05-18 14:43:29 +00:00
|
|
|
command = "npm i yarn && yarn && yarn workspaces run prepare && yarn workspace mon-entreprise build"
|
2020-05-08 10:04:00 +00:00
|
|
|
publish = "mon-entreprise/dist"
|
|
|
|
|
2018-11-13 15:47:49 +00:00
|
|
|
[context.deploy-preview.environment]
|
2018-11-15 11:16:09 +00:00
|
|
|
EN_SITE = "${path}?s=m"
|
|
|
|
FR_SITE = "${path}"
|
2018-11-13 15:47:49 +00:00
|
|
|
|
|
|
|
[context.production.environment]
|
2018-11-15 11:16:09 +00:00
|
|
|
EN_SITE = "https://mycompanyinfrance.fr${path}"
|
2018-12-10 14:13:14 +00:00
|
|
|
FR_SITE = "https://mon-entreprise.fr${path}"
|
2019-02-12 18:20:04 +00:00
|
|
|
|
2019-04-30 14:22:14 +00:00
|
|
|
[context."demo".environment]
|
2019-02-12 18:20:04 +00:00
|
|
|
EN_SITE = "https://demo.mon-entreprise.fr${path}?s=m"
|
|
|
|
FR_SITE = "https://demo.mon-entreprise.fr${path}"
|
2019-04-30 14:22:14 +00:00
|
|
|
|