Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We have a web application at x-x.com and a site collection at /sites/test (https://x-x.com/sites/test/) We have set up two vanity urls in our DNS so that in theory a user can type https://vanity1/sites/test or https://vanity2/sites/test. We initially thought that simply editing the bindings for the web application would allow us to us the vanity URLs...it is not working. Can someone step us through how to set it up so our vanity urls can be used to access our site collection?

share|improve this question

3 Answers 3

up vote 6 down vote accepted

Make sure to also add the URLs into:

Central Administration > System Settings > Configure alternate access mappings .

share|improve this answer

Alternative access map is the feature desgined specifically for the purpose you describe.

The instructions I have linked to are for SharePoint v3 (WSS 3.0 and MOSS 2007), but remain the same for v4 (Foundation 2010, Server 2010). To my knowledge Microsoft has not provided updated instructions for the 2010 products and does reference this article in some of the 2010 product documentation.

AAM is not the most intuitive thing (well the concept is, but the implementation seems weird at times). SharePoint hard-codes the original URL into the content database and uses AAM to translate the vanity URLs to this. Do not edit the IIS bindings directly otherwise the translation will not happen correctly and you will get HTTP 404 errors seemingly at random.

share|improve this answer

Host header site collection is the best option for you

share|improve this answer
1  
Can you elaborate on your answer? While it could potentially be correct.. there really isn't enough detail or explanation here. –  Kit Menke Nov 30 '11 at 19:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.