In my SharePoint site, whenever I search in the upper box, it redirects me to _layouts/OSSSearchResults.aspx but I want it to redirect me to a different search results page.

I've changed the setting on top site collection Site Actions=> Site Settings => Search Settings to redirect me to page with path /Search/Results.aspx but it doesn't work.

So how can I redirect all search to /Search/Results.aspx page ?

  • I have a similar problem But i cannot simply update the site collection settings. because i dont want this to be over the entire site collection. I only want a particalar teamsite to use this new search centre i created, not the entire site collection. – user8169 May 3 '12 at 7:01

Do you have Enterprise Search available to you or our you on foundation? If you have it available you will want to enable it and follow @Fox advise. If not, you can not redirect your page. Foundation search will always use the default OSSearchResults page.

If you want this capability, and you are on foundation consider deploying Search Server Express. http://www.microsoft.com/enterprisesearch/en/us/search-server-express.aspx

Search Server Express, is Foundation with Enterprise Search. The only limitation is that search cant be deployed across multiple servers (search service).

| improve this answer | |

Why put yourself in all that trouble when you can just go Site Collection Administration -> Search settings and then add "http://yourservername/sites/yoursitename/Search/Pages/default.aspx" into the "Site Collection Search Results Page" field.


| improve this answer | |

I suspect you have a Sharepoint Enterprise Search Site collection and you want to route Search Results there...

Have a look the following Settings Page: http://yoursitecollection/_layouts/enhancedSearch.aspx

Select "Enable custom scopes" and enter your URL as follow: /Search/Pages

Also a couple of other options on this page you might want to have look at.

Here is a full article on how to configure: http://sharepointgeorge.com/2010/configuring-enterprise-search-sharepoint-2010/


| improve this answer | |
  • no i didn't install Enterprise search it's the express one that come with SharePoint – BigOmar Jul 27 '11 at 8:05

In SharePoint you can change the default _layouts/OSSSearchResults.aspx to your custom search results page. Kindly follow the below procedures:

1) Add the Search box web part to the page you want

2) Edit the represent page in SPD (2013 SharePoint Designer)

3) Right click on the Search webpart controls, go to tag properties and change your custom search results page

| improve this answer | |

I ran into the same problem about a year ago. I found some information about modifying the ossssearchresults.aspx in the 12 hive (located in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS) to use javascript to redirect to the custom results.aspx page. For example, see this page:


However, I didn't want to affect search functionality for the entire farm, just one particular site collection. I added a simple check to only redirect the search if the original search came from my particular site. The resulting javascript looks like this:

function getParam(name)
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regexS = "[\\?&]"+name+"=([^&#]*)";
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );
    if( results == null ) return "";
    else return results[1];

function redirectTo()


Hope this works for you. Let me know if you have any questions.


| improve this answer | |

There is a field target result page where you can just put results.aspx

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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