Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to override a crawl rule in SharePoint 2007 Central Admin? For example, if I have a site and I only want users to see content from http://www.mysite.com/sites/portal in search results, can I block the development and staging sites like so:

Exclude http://www.mysite.com/sites/* -- this will exclude .../sites/dev and .../sites/staging

Include: http://www.mysite.com/sites/portal -- will this be included?

Thanks in advance.

UPDATE

I implemented the rule set above and tried to use the built-in test function and results indicated that the portal site would not be included. Not sure if that's truly the case but still curious if this is actual.

share|improve this question

migrated from stackoverflow.com Aug 1 '11 at 20:46

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

As I've just found out it will work if you use the "correct" order, that is, put the url you want in first, and then exclude the other stuff. Therefore:

(order=1) Include: http://www.mysite.com/sites/portal 
(order=2) Exclude: http://www.mysite.com/sites/* -- this will exclude .../sites/dev and .../sites/staging

Will make the test for http://www.mysite.com/sites/portal pass

Unfortunately it is still ignored by the crawler!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.