Skip to content

Commit

Permalink
🐛 only do the news search params and instant search #2682 (#2684)
Browse files Browse the repository at this point in the history
* 🐛 only do the news search params and instant search

* 🐛 missed disallow
  • Loading branch information
BorghildSelle authored Nov 20, 2024
1 parent 1f9b518 commit 4f00a54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export const crawlableDomains = [

const robots = (domain: string) => `User-agent: *
${crawlableDomains.includes(domain) ? 'Allow' : 'Disallow'}: /
${domain === 'www.equinor.com' ? 'Disallow: /search \nDisallow: /search.html \nDisallow: /*?*' : ''}
${
domain === 'www.equinor.com'
? `Disallow: /search \nDisallow: /search.html \nDisallow: /?*topic \nDisallow: /?*country \nDisallow: /?*year \nDisallow: /?*refinementList \nDisallow: /?*sortBy`
: ''
}
Sitemap: ${domain.startsWith('www') ? `https://${domain}` : domain}/sitemap.xml
`

Expand Down

0 comments on commit 4f00a54

Please sign in to comment.