Thursday, November 8, 2007

MOSS AAM - Need Redirecting to alternate url (but same page!)

Problem: We had a moss site of , added alternative access mapping (AAM) so collegues of other countries can view the pages. The changed in url messed up the infopath browser-enabled forms that was on the old site. errors could be prompting you to save the form or saying the form has been closed. However, forms will open and work well on the new url.


Soln: To prevent users from using the old url, we had to do a redirect like so on the same default.aspx page:

<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<META Name="CollaborationServer" Content="SharePoint Team Web Site">

<script type="text/javascript">

//add here:
var url = window.location.href;
if(url.search(/servername:1234/i) != -1){
window.location="http://servername.co.com:1234/default.aspx";
}
//
var navBarHelpOverrideKey = "wssmain";
</script>


</asp:Content>

Tuesday, November 6, 2007

access denied going to newly created sharepoint (moss) site

Encountered this problem:

Created a moss site using host header (http://intranet.machinename.com), created site collection of / and /sites/hr. tried to logon but kept getting prompted. no matter what id used, access always denied.

Soln: to to Central Administration, Application Management, Authentication Providers, click on zone, make sure IIS Authentication Settings is set to NTLM (was kerberos!).