find an expression, but replace another..
Posted: Wed Jul 20, 2011 6:59 pm
My blog has about a thousand html files in monthly directories over about 5 years, so about 60 directories.
I would like to add a no-index tag in the head section for obsolete entries, this is in about 180 posts out of a 1000.
Basically what I want to do: if the html file contains the line
'posted in: category'
(located somewhere in the middle of the document), I would like to add a
<meta name="robots" content="noindex" />
tag in the head section.
Is this possible (without breaking directory structure etc...)?
I would like to add a no-index tag in the head section for obsolete entries, this is in about 180 posts out of a 1000.
Basically what I want to do: if the html file contains the line
'posted in: category'
(located somewhere in the middle of the document), I would like to add a
<meta name="robots" content="noindex" />
tag in the head section.
Is this possible (without breaking directory structure etc...)?