# InFrance PRODUCTION settings [[redirects]] from = "https://www.mycompanyinfrance.fr/*" to = "https://mycompanyinfrance.fr/:splat" status = 301 [[redirects]] from = "https://mycompanyinfrance.fr/robots.txt" to = "/robots.infrance.txt" status = 200 [[redirects]] from = "https://mycompanyinfrance.fr/sitemap.txt" to = "/sitemap.infrance.en.txt" status = 200 ## Redirection pour les pages prérendues [[redirects]] from = "https://mycompanyinfrance.fr" to = "/prerender/infrance/index.html" status = 200 [[redirects]] from = "https://mycompanyinfrance.fr/social-security/salaried" to = "/prerender/infrance/social-security/salaried/index.html" status = 200 [[redirects]] from = "https://mycompanyinfrance.fr/iframes/simulateur-embauche" to = "/prerender/infrance/iframes/simulateur-embauche/index.html" status = 200 [[redirects]] from = "https://mycompanyinfrance.fr/*" to = "/infrance.html" status = 200 # Mon-entreprise.fr PRODUCTION settings [[redirects]] from = "https://mon-entreprise.fr/stats" to = "https://branched-trunk.glitch.me/" status = 200 [[redirects]] from = "https://mon-entreprise.fr/robots.txt" to = "/robots.infrance.txt" status = 200 [[redirects]] from = "https://mon-entreprise.fr/sitemap.txt" to = "/sitemap.infrance.fr.txt" status = 200 ## Redirection pour les pages prérendues [[redirects]] from = "https://mon-entreprise.fr" to = "/prerender/mon-entreprise/index.html" status = 200 [[redirects]] from = "https://mon-entreprise.fr/sécurité-sociale/salarié" to = "/prerender/mon-entreprise/sécurité-sociale/salarié/index.html" status = 200 [[redirects]] from = "https://mon-entreprise.fr/iframes/simulateur-embauche" to = "/prerender/mon-entreprise/iframes/simulateur-embauche/index.html" status = 200 [[redirects]] from = "https://mon-entreprise.fr/*" to = "/mon-entreprise.html" status = 200 # Embauche redirection settings [[redirects]] from = "https://embauche.beta.gouv.fr/" to = "https://mon-entreprise.fr/sécurité-sociale/salarié" 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-script.js" status = 301 [[redirects]] from = "https://embauche.beta.gouv.fr/dist/simulateur.js" to = "https://mon-entreprise.fr/simulateur-iframe-integration-script.js" status = 301 # Redirect to mycompanyinfrance in staging and development settings [[redirects]] from = "/" query = {s = "m"} to = "/prerender/infrance/index.html" status = 200 [[redirects]] from = "/*" query = {s = "m"} to = "/infrance.html" status = 200 # Redirect to mon-entreprise in staging and development settings [[redirects]] from = "/" to = "/prerender/mon-entreprise/index.html" status = 200 [[redirects]] from = "/sécurité-sociale/salarié" to = "/prerender/mon-entreprise/sécurité-sociale/salarié/index.html" status = 200 [[redirects]] from = "/iframes/simulateur-embauche" to = "/prerender/mon-entreprise/iframes/simulateur-embauche/index.html" status = 200 [[redirects]] from = "/*" to = "/mon-entreprise.html" status = 200 [context.deploy-preview.environment] EN_SITE = "${path}?s=m" FR_SITE = "${path}" [context.production.environment] EN_SITE = "https://mycompanyinfrance.fr${path}" FR_SITE = "https://mon-entreprise.fr${path}" MASTER = 'true' [context."demo".environment] EN_SITE = "https://demo.mon-entreprise.fr${path}?s=m" FR_SITE = "https://demo.mon-entreprise.fr${path}" # TEMP Just for testing the iframe when migrating from embauche to mon-entreprise [context."migration-embauche".environment] EN_SITE = "https://deploy-preview-520--syso.netlify.com${path}?s=m" FR_SITE = "https://deploy-preview-520--syso.netlify.com${path}"