According to RFC 1738: Uniform Resource Locators (URL): 3.1. Common Internet Scheme Syntax, must the host component contain a dot, e.g., "example.com"? I.e., may it be composed of only one domain label?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
No, the host doesn't have to contain a dot. I.e., yes, only one domain label is fine. Look at
This document is referenced from http://tools.ietf.org/html/rfc1738#section-3.1 to describe the host naming rules. |
|||||||||
|