Ask a questionAsk a question
 

Answerchange url of search result page

  • Tuesday, November 24, 2009 10:57 PMAnna2009 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We have a MOSS 2007 internet site. Someone created mistakenly an intranet site collection  in this web application and did some work - I will call it location 1 in the following text.

    Now I created a new web application just for intranet. And backup the orginal intranet site collection and restored to the new web application as a top site collection, I will call this location 2.

    It works fine except the search box. Since in location 1, the searchresult page is : http://www.mycompany.com/sites/intranet/searchresult.aspx.

    after I restore it to the new site, it's still pointing to  something similar like the old address: http://intranet.mycompany.com/sites/intranet/searchresult.aspx.
    But I got a page cannot found message in location 2. But if I manully enter url http://intranet.mycompany.com/sites/intranet/searchresult.aspx. it will show the result.


    Where in the code I can change  the URL of search result page? to http://intranet.mycompany.com/sites/intranet/searchresult.aspx.

    I know we have a customized web master page, and at the top corner of it, there is a search box, but I cannot find where to change the url address of search result page?

    Thanks

    • Moved byMike Walsh MVPMVP, ModeratorWednesday, November 25, 2009 6:14 AMsearch related (From:SharePoint - Setup, Upgrade, Administration and Operation)
    •  

Answers

  • Tuesday, November 24, 2009 11:01 PMMike OryszakMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If the search specific stuff was not customized, then you will find the setting in the Site Collection Administration menu (Site Actions, Site Settings), click the Search Settings link and configure as necessary.


    SharePoint Developer | Administrator | Evangelist -- Twitter -- Blog - http://nextconnect.blogspot.com
    • Marked As Answer byAnna2009 Wednesday, November 25, 2009 2:50 PM
    •  

All Replies

  • Tuesday, November 24, 2009 11:01 PMMike OryszakMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If the search specific stuff was not customized, then you will find the setting in the Site Collection Administration menu (Site Actions, Site Settings), click the Search Settings link and configure as necessary.


    SharePoint Developer | Administrator | Evangelist -- Twitter -- Blog - http://nextconnect.blogspot.com
    • Marked As Answer byAnna2009 Wednesday, November 25, 2009 2:50 PM
    •  
  • Wednesday, November 25, 2009 2:50 PMAnna2009 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Wow, that's very helpful. I didn't expect it's so easy to change here. I thought some code has to change in the search box web part that I never figured out.


    Thank you!