The correct structure of an url

Hello,

Just want to make sure that a correct url must have a β€˜/’ after the domain.

  1. http://example.com?blahblah=test

  2. http://example.com/?blahblah=test

  3. http://example.com/page.php?blahblah=test

  4. http://example.com#fragment

  5. http://example.com/#fragment

1 and 4 are malformed urls, am I right? What is the RFC defining this?

:slight_smile:

Well the domain should have the / yes. Doesn’t mean it can’t be processed without, but you should have the β€˜/’ yes.

Does someone know what is the RFC (or other official ressource such as w3c) defining this?

:slight_smile:

URL Specifications (official sources):

http://www.ietf.org/rfc/rfc1738.txt

http://www.w3.org/Addressing/URL/url-spec.txt