Change DNS (or whatever) so when users go to it points to servername (part 2)

Posted on 2006-05-05
Last Modified: 2010-03-18
In a previous questions:

I found out how to point to (which is the IP Address for my server called "servername".  

But now I want to point 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.


Question by:dougshepard
    LVL 3

    Expert Comment

    put this to default.htm in directory of
    <BODY onLoad="redirect()">
          <form method="post" action="http://servername/sites/department">
          <input name="test" value="test"  type="hidden" />
          <SCRIPT language="javascript">
                function redirect(){
                 setTimeout('document.forms[0].submit();', 100);
    LVL 51

    Accepted Solution

    You cannot use DNS for this purpose. DNS will only return the IP address; nothing else.

    You need to really use either the headers from within the IIS if the script submitted above does not help.
    LVL 3

    Expert Comment

    My script above should help you to work as you wanted.

    Author Comment

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

    LVL 3

    Expert Comment

    add a directory for the site is the easiest way to make it
    LVL 51

    Expert Comment

    by:Keith Alabaster
    Still believe the answer is no.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    New My Cloud Pro Series - organize everything!

    With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

    A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
    The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now