SharePoint Developer Center >
SharePoint Products and Technologies Forums
>
SharePoint - Search
>
Change the search results url
Change the search results url
- Hi folks,
I've add a new SearchCenter site under my site collection and I want all searches to show results in the /SearchCenter/results.aspx and not as it is today: /_layouts/OSOSSSearchResults.aspx
1.How can I do it?
2. By the way, the pages(results.aspx, advanced.aspx, searcha.aspx) under my SearchCenter site are not under Pages folder, but directly under SearchCenter(like: /SearchCenter/results.aspx), do you know why?
Thank you,
Yair
Answers
- For the first issue, go to the Top-level site, Site Settings > Search Settings. You will be able to select whether to use scopes and a search center, or the osssearchresults.aspx.
You will also probably need to configure scopes to point to a particular page within your search center (such as results.aspx). Site Settings > Search Scopes
For the second issue, you are probably not seeing pages in the pages library because your search center is based off the "Search Center" template. This template is not a MOSS publishing site, and so doesn't have the pages library.
In comparison, a site based off the "Search Center with Tabs" template is a MOSS publishing site with a pages library.
Hope this helps
Paul.- Marked As Answer byGuYumingMSFT, ModeratorFriday, November 06, 2009 7:05 AM
All Replies
I think for the first one, you should edit the search box web part. Set Field【Target search results page URL】 to your own page.
For the second one, have you created your own search result pages?
- For the first issue, go to the Top-level site, Site Settings > Search Settings. You will be able to select whether to use scopes and a search center, or the osssearchresults.aspx.
You will also probably need to configure scopes to point to a particular page within your search center (such as results.aspx). Site Settings > Search Scopes
For the second issue, you are probably not seeing pages in the pages library because your search center is based off the "Search Center" template. This template is not a MOSS publishing site, and so doesn't have the pages library.
In comparison, a site based off the "Search Center with Tabs" template is a MOSS publishing site with a pages library.
Hope this helps
Paul.- Marked As Answer byGuYumingMSFT, ModeratorFriday, November 06, 2009 7:05 AM
- right. Please make sure that you are site collection admin.


