SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't want "AllItems.aspx" to appear in sharepoint search results from any level/ folder. So I created new crawl rule http://.*/forms/allitems.aspx and checked the regular expression check box. Gave Full crawl of content source.

But unfortunately "AllItems.aspx" still shows up in sharepoint search results. If anyone could point what am I doing wrong.

share|improve this question

migrated from Sep 28 '12 at 15:29

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

I think you look at the problem from the wrong view. You actually do want to include allitems.aspx to be crawled but none of the other views. To make this work you need to make a crawl rule that includes allitems.aspx as order 1, and an exclusion rule that skips all other views - like this:

enter image description here

enter image description here

With this all af your documents are beeing crawled only once, which is a good thing. Exluding allitems.aspx could make documents not crawled - and if so, they can't be found in search.

But to overcome your problem, you need to exclude allitems.aspx in the result source - like this:


Now you have all documents crawled, but are not showing the allitems.aspx in your search result.

share|improve this answer

I haven't tested this out, but with my knowledge of regular expressions.. shouldn't it be something like:

share|improve this answer

When creating regular expressions for crawl rules you need to include the protocol (http(s)://) So it must start with http:// (https://) then follow by your pattern. Else SharePoint will be kind and add it.

I think you are looking for something like this http:///forms/allitems.aspx[?] In case there is a link pointing to allitems.aspx with parameters.

share|improve this answer

Your Answer


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