Question

  Asked: May 16 2008   2:19 PM GMT
  Asked by: Kantrip


Accessing MOSS 2007 subwebs via subdomains.


SharePoint 2007, MOSS, Subdomain, Subweb, Domain management, SharePoint

I have 26 sharepoints sites that need to be accessed via subdomains i.e. site1.domain.com, site2.domain.com,siteN.domain.com etc.
The obvious way to set these up are as separate Web Apps.

For Administrative purposes I would prefer to set these up as subwebs and was curious if there was any easy way to access a sharepoint subweb (domain.com/site1) as a subdomain(site1.domain.com)

Being able to do this may keep both myself andd my boss happy.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



You could setup an IIS site which will accept the requests for the subdomains and do a server side redirect to the correct subweb. I did this for our production website for our marketing guys. I used an ASP script so that I could have a single IIS site handle all 15 subdomains that they wanted setup. My script looked something like this.

<%
Dim HTTP_HOST
HTTP_HOST = lcase(request.ServerVariables("HTTP_HOST"))
IF HTTP_HOST = "site1.domain.com" then
response.redirect "http://domain.com/site1"
elseif HTTP_HOST = "site2.domain.com" then
response.redirect "http://domain.com/site2"
else
response.redirect "http://domain.com/"
end if
%>
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Microsoft Windows and Development.

Looking for relevant Microsoft Windows Whitepapers? Visit the SearchEnterpriseDesktop.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Thongtarget  |   Aug 28 2008  1:39PM GMT

Interesting..

Thanks

 

Esantomarco  |   Aug 29 2008  7:49PM GMT

Great.

Thanks.