nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
412 stars 30 forks source link

Disallow is always first #32

Closed d-ryabtsev closed 4 years ago

d-ryabtsev commented 4 years ago

It seems like I am unable to change the order of Allow/Disallow in the robots file.. this is a problem when you only want to allow certain pages and disallow the rest as the order matters.

ricardogobbosouza commented 4 years ago

Hi @tsolrm You can pass array https://github.com/nuxt-community/robots-module#array So you group and sort as you see fit.

TitanFighter commented 1 year ago

Example:

['@nuxtjs/robots', [
  { UserAgent: '*' },
  { Allow: ['/*?*page=', '/*.js', '/*.css'] },
  { Disallow: ['/somePage', '/*?*'] }
]]