Skip to content

Commit

Permalink
πŸ€– Add disallow for news and nyheter #2644 (#2645)
Browse files Browse the repository at this point in the history
* πŸ€– Add disallow for news and nyheter #2644

* Add search params #2644

* Change & ?

* only search params #2644

* Change to wildcard

* Add newline break #2644
  • Loading branch information
millianapia authored Nov 6, 2024
1 parent cbc520f commit c8674f9
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' : ''}
${domain === 'www.equinor.com' ? 'Disallow: /search \nDisallow: /search.html \nDisallow: /*?*' : ''}
Sitemap: ${domain.startsWith('www') ? `https://${domain}` : domain}/sitemap.xml
`

Expand Down

0 comments on commit c8674f9

Please sign in to comment.