Is there anyway to get the search results to only display with the AAM URL

Is there anyway to get the search results to only display with the AAM URL

Hopefully someone will be able to help me with this issue.

I have a SP 2010 Standard Farm with 2 Web Applications. One of the Web Apps hosts our company intranet which has an Alternate Access Mapping to make the URL more friendly for the users. The other Web App hosts some team sites and more importantly the Search Centre.

What we've discovered is that when users search from the Intranet, they are redirected to the Search Centre and results are displayed ok, but any results from the Intranet Web App are labled with the "real" URL of the Intranet Web App, not the AAM URL.

If the users then click on a search result, they are presented with a browser authentication dialog which doesn't accept their credentials and eventually dumps them into a 401 UNAUTHORISED error page.

So my questions are:

1. Is there anyway to get the search results to only display with the AAM URL

2. Is there anyway to resolve the authentication issue we seem to be having when browsing from one URL to the other.

Please note that we have both URLS (the AAM one and the "real" one) in Trusted Sites in IE.

If you only ever want the search results to display the friendly intranet URL you can do two things:

1. It sounds like you're crawling the "real" URL. Crawl the friendly URL instead

2. Use a server name mapping in the search service which will automatically translate the "real" URL to the friendly URL and links/references will use the friendly URL. I can't find a SP2010 reference to this. Here is the 2007 reference: Manage server name mappings (Office SharePoint Server). Adding it is the same, getting to the page is different (it's likely CA -> Manage Service Applications -> Search service application -> Server Name Mappings)

Copyright © 2007-2012 www.chuibin.com Chuibin Copyright