Mariusz, Gorzoch tech Blog

Archive for September 2010

Alternate Access Mapping in SharePoint 2007

with one comment

So, what it is ? Before I tweak it up I took it a as a black box with shouldn’t be touch at all. Unfortunately something get broken and apparently all signs on the sky pointed to this black box. Here is description of our scenario and what I needed to set it up correctly.


We have one front web server exposed to our end users with can be accessed by them thru 4 different names:

  • name1
  • name1.domain.net
  • name2
  • name2.domain.net

what I needed to do is to somehow configure AAM in the way that whatever starting address use will use, then he will be redirected to name1.domain.net and from now on this URL will be use to surf thru our intranet.


I needed to go to AAM (Central administration –> Operation –> Alternate Access Mapping), pickup my “Alternate Access Mapping Collection” (in my case it was the one placed on port 80) and:

1. Edit Public URL and set it to : name1.domain.net <- this is your public URL with will be use by SharePoint to respond to end user for any request from internal URL

2. Add all other URL as internal ones. <- this is working in the way, that each time server get request from such a URL then he will just replay with 302 code redirecting user to the public URL.

once you set AAM like above and of course also:

  • add your all above URL to host headers in IIS
  • associate those names with you server in DNS

then you are done, and whatever from above addresses user will use he will be redirected to name1.domain.net and surf thru your intranet with that address.

quite simple… but it took me a while to figure out this.

In case you want to read about it take a look at below links:

happy whatever , 😉

Written by Mariusz Gorzoch

28 September 2010 at 14:51

Posted in SharePoint

CurrentNavSiteMapProviderNoEncode lessen learned

leave a comment »

Today I have a good lessen around “PortalSiteMapProvider.CurrentNavSiteMapProviderNoEncode”. We have a solution deployed on our intranet with is using mentioned provided to get page structure and create a string containing path from root page up to page title level. This solution was working fine till the time when someone rise a problem for me showing that the page title is not presented any more. This could also be noticed by simply going to the page congaing article and looking at breadcrumb menu which didn’t contain “page title” in it:

I dig around and found that reason for that lays in the navigation settings:

if two above gays are not selected, then you will lose your page title from “PortalSiteMapProvider.CurrentNavSiteMapProviderNoEncode” and probably waste 1day looking around that as I did, 😉

After checking them:

magic happened, 😉

Written by Mariusz Gorzoch

16 September 2010 at 12:30

Posted in Bez kategorii