Skip to content

Commit c8674f9

Browse files
authored
🤖 Add disallow for news and nyheter #2644 (#2645)
* 🤖 Add disallow for news and nyheter #2644 * Add search params #2644 * Change & ? * only search params #2644 * Change to wildcard * Add newline break #2644
1 parent cbc520f commit c8674f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pages/robots.txt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const crawlableDomains = [
2020

2121
const robots = (domain: string) => `User-agent: *
2222
${crawlableDomains.includes(domain) ? 'Allow' : 'Disallow'}: /
23-
${domain === 'www.equinor.com' ? 'Disallow: /search \nDisallow: /search.html' : ''}
23+
${domain === 'www.equinor.com' ? 'Disallow: /search \nDisallow: /search.html \nDisallow: /*?*' : ''}
2424
Sitemap: ${domain.startsWith('www') ? `https://${domain}` : domain}/sitemap.xml
2525
`
2626

0 commit comments

Comments
 (0)