Accessing MOSS 2007 subwebs via subdomains.

5 pts.
Tags:
Domain management
MOSS
SharePoint
SharePoint 2007
Subdomain
Subweb
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

<pre><%
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
%></pre>

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Kantrip
    Interesting.. Thanks
    0 pointsBadges:
    report
  • Esantomarco
    Great. Thanks.
    30 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following