Skip to content

Commit

Permalink
🐛 only do the news search params and instant search
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Nov 20, 2024
1 parent 1f9b518 commit 5b43441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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 /?*sortBy` : ''}
Sitemap: ${domain.startsWith('www') ? `https://${domain}` : domain}/sitemap.xml
`

Expand Down

0 comments on commit 5b43441

Please sign in to comment.