NetTalk Central

Author Topic: Host and URL with/without www.  (Read 2174 times)

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Host and URL with/without www.
« on: July 10, 2013, 03:20:36 PM »
I have a Host.exe with two NT web servers (.dll) running under the Host.  All works great (Thanks Bruce!), but I noticed that if the user enters the desired web url (ie MyWebSite.com) without www and the Host has the site name host field with the www (www.MyWebSite.com) then instead of the desired web site being served, the Host is served.  The opposite occurs to (if the host is set as MyWebSite.com and the user requests www.MyWebSite.com, then the host site is served.

I can understand that, but those pesky users don't do what I want them to do every time.  How would I go about having the host serve the right site regardless of whether the www was requested or not?

Mike Springer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: Host and URL with/without www.
« Reply #1 on: July 10, 2013, 08:57:26 PM »
Hi Mike,

Just add 2 entries to the Host system, pointing at the same DLL. For example In my server I have an entry for
capesoft.com and another for www.capesoft.com - they're identical entries (yay for the Copy button) they just differ in the Host Name part.

Cheers
Bruce


springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Re: Host and URL with/without www.
« Reply #2 on: July 11, 2013, 01:06:20 AM »
Hi Bruce,
Of course, super simple!
Thanks,
Mike