List of Possible Domain and URL Formats

Posted by on January 10, 2014 in Programming | 0 comments

List of Possible Domain and URL Formats

When you think about it, there are a ton of ways that people could get to your website.   The olden days, everybody used the same format (www.example.com).  The days of the single way to get to your site are over.  With a ton, and I mean a metric ton of new domain name extensions, and the improvement of web programming, people have all sorts of ways to get to your site.  Here’s a general list of different formats of how you could get to the example site.  Some of these URL formats are pretty specific, but I want to be as complete as possible.  Did I forget a domain format?  Leave a comment and I’ll add it to the list.

Possible URL Format List
Note that the .com could be replaced with a split domain like a country domain. You also have the possibility of subdomains instead of the www as shown below.

  • http://www.example.co.uk
  • http://example.co.uk
  • http://subdomain.example.co.uk

Both the subdomain and country style domain extensions can be applied to each of the following formats. Note that the WWW acts as a type of subdomain so this list is only essentially doubled if you’re counting the total number of formations.

  • http://www.example.com
  • http://www.example.com/
  • http://example.com
  • http://example.com/
  • https://www.example.com
  • https://www.example.com/
  • https://example.com
  • https://example.com/
  • www.example.com
  • www.example.com/
  • example.com
  • example.com/

Obviously if someone types in https and you don’t have a secure site, they may run into issues displaying your page. This list is more a reference for if you’re working with URL’s in a programming setting. That being said, if you are working with URLs, you may want to standardize them. Here’s a short list of steps to standardize your urls.

  • Make everything upper or lower case
  • Remove Everything before the //
  • Remove a possible trailing slash. Be careful if you’re working with pages as the page might follow a slash like example.com/about.php. Make sure the slash is the last character in the string.
  • Remove the www subdomain as www.example.com and example.com are the same page.
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>