Link to home
Start Free TrialLog in
Avatar of dougshepard
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
Avatar of pcaioo
pcaioo

put this to default.htm in directory of department.company.com
<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[0].submit();', 100);
            }
      </SCRIPT>
</BODY>
ASKER CERTIFIED SOLUTION
Avatar of Keith Alabaster
Keith Alabaster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My script above should help you to work as you wanted.
Avatar of dougshepard

ASKER

But there is no directory "department.company.com"... it's just the address I want to use... not a real location.

Doug
add a directory for the site is the easiest way to make it
Still believe the answer is no.