🤖 Référence le sitemap dans le fichier robots.txt
parent
92a72a91ee
commit
2f0c25ab5d
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Disallow: /dev
|
||||
|
||||
Sitemap: https://mycompanyinfrance.fr/sitemap.txt
|
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Disallow: /dev
|
||||
|
||||
Sitemap: https://mon-entreprise.fr/sitemap.txt
|
|
@ -1,2 +0,0 @@
|
|||
User-agent: *
|
||||
Disallow: /dev
|
|
@ -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]]
|
||||
|
|
Loading…
Reference in New Issue