Forum Moderators: goodroi

Message Too Old, No Replies

Is it possible to block file names beginning with a text string?

         

Gemini23

1:07 pm on Nov 10, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In Robots.txt is it possible to block more than 1 file name beginning with the same text string?

wordpress creates a number of urls that I don't want indexed - such as the search pages...

/blog/s?=****
?attachment****

The * represent various different and unique character strings.

Is it possible to block all beginning with >
/blog/s?=
and
/?attachment

phranque

8:07 am on Nov 11, 2013 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



that's how it works in robots.txt - disallowed urls are matched left-to-right.