Keep pages that do not have a certain meta value

Post Reply
michel.weber
Posts: 256
Joined: Sat Oct 08, 2005 12:40 pm

Keep pages that do not have a certain meta value

Post by michel.weber »

Hi

On a web site i would like to index only the pages that have a certain value in a meta tag

ie i want only the pages that have the following :
<meta="mytag" content="blah blah MYSTRING blah>
Can this be done with exclude by fields and REX?

What happens if the tag is not present?
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

Keep pages that do not have a certain meta value

Post by mark »

Sounds like you need an "include by field" feature. You may be able to fake it if the pages on your site are all html and all have some common tag like <html> or such. You could then write an exclude by field query something like this (untested):

/<html> -/>><meta\=\x22mytag\x22\x20content\=\x22=!mystring*mystring=[^\x22>]*\x22
Post Reply