🤖 Référence le sitemap dans le fichier robots.txt

pull/1765/head
Maxime Quandalle 2021-10-01 11:21:03 +02:00
parent 92a72a91ee
commit 2f0c25ab5d
5 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import { SitePathsContext } from 'Components/utils/SitePathsContext'
import { useContext } from 'react'
import { generateSiteMap, SitePathsType } from '../../sitePaths'
import { generateSiteMap } from '../../sitePaths'
export default function SiteMap() {
const sitePaths = useContext(SitePathsContext)

View File

@ -0,0 +1,4 @@
User-agent: *
Disallow: /dev
Sitemap: https://mycompanyinfrance.fr/sitemap.txt

View File

@ -0,0 +1,4 @@
User-agent: *
Disallow: /dev
Sitemap: https://mon-entreprise.fr/sitemap.txt

View File

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

View File

@ -108,7 +108,7 @@ Content-Security-Policy-Report-Only = "default-src 'self' mon-entreprise.fr; sty
# Mon-entreprise.fr
[[redirects]]
from = ":SITE_FR/robots.txt"
to = "/robots.infrance.txt"
to = "/robots.fr.txt"
status = 200
[[redirects]]
@ -202,7 +202,7 @@ Content-Security-Policy-Report-Only = "default-src 'self' mon-entreprise.fr; sty
[[redirects]]
from = ":SITE_EN/robots.txt"
to = "/robots.infrance.txt"
to = "/robots.en.txt"
status = 200
[[redirects]]