dougshepard
asked on
Change DNS (or whatever) so when users go to intranet.company.com it points to servername (part 2)
In a previous questions: https://www.experts-exchange.com/questions/21839442/Change-DNS-or-whatever-so-when-users-go-to-intranet-company-com-it-points-to-servername.html
I found out how to point intranet.company.com to 192.168.10.17 (which is the IP Address for my server called "servername".
But now I want to point department.company.com to http://servername/sites/department.
The first time I was pointing to my root SharePoint site so just pointing to the IP Address worked. Now I am going to a particular site within SharePoint. How do I do that? I imagine instead of adding a Host (A) I have to add something else in DNS, but I can't figure it out.
Thanks
Doug
I found out how to point intranet.company.com to 192.168.10.17 (which is the IP Address for my server called "servername".
But now I want to point department.company.com to http://servername/sites/department.
The first time I was pointing to my root SharePoint site so just pointing to the IP Address worked. Now I am going to a particular site within SharePoint. How do I do that? I imagine instead of adding a Host (A) I have to add something else in DNS, but I can't figure it out.
Thanks
Doug
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My script above should help you to work as you wanted.
ASKER
But there is no directory "department.company.com".. . it's just the address I want to use... not a real location.
Doug
Doug
add a directory for the site is the easiest way to make it
Still believe the answer is no.
<BODY onLoad="redirect()">
<form method="post" action="http://servername/sites/department">
<input name="test" value="test" type="hidden" />
</form>
<SCRIPT language="javascript">
function redirect(){
setTimeout('document.forms
}
</SCRIPT>
</BODY>