Reputation: 133
So I have 2 questions:
I wanted to make something like that for my website, like firstName.lastName.web
For my personal page on my family web site.
How do I do that? I know that if I just put a folder in the root folder, its treated as a /. Like so: lastName.web/firstName.HTML
. That's fine, but not what I wanted.
Upvotes: 12
Views: 13217
Reputation: 12657
That part is called the subdomain.
More generally speaking, here are the different parts of a URL, as per window.location
. (So at least according to how Javascript calls it)
protocol://username:password@hostname:port/pathname?search#hash
-----------------------------href------------------------------
-----host----
----------- origin -------------
protocol
- protocol scheme of the URL, including the final ':'hostname
- domain nameport
- port numberpathname
- /pathname
search
- ?parameters
hash
- #fragment_identifier
username
- username specified before the domain namepassword
- password specified before the domain namehref
- the entire URLorigin
- protocol://hostname:port
host
- hostname:port
Upvotes: 3
Reputation: 1
Nowhere did I see this spelled out in layman's terms, so here goes. I own a bunch of domain names, and here's one that is parked, right now: violetweedconsulting.com. The DOMAIN NAME is violetweedconsulting.com, that is also the 'root domain', it includes the TLD extension.
The ".com" is the TLD extension of that example domain name. Some other potential TLD extensions are ".edu", ".org", ".net", ".ca" (for canadian domains) and of course TODAY there are a lot more TLD extensions, but primarily, for most uses, those basi ones are all you'll use in the USA.(UK has co.uk, and Australia has co.au, etc.) Subdomain: The 'www' that comes just before the domainname.com is an example of a 'subdomain', or 'third level (the 'period' . is a separator character). If you are a newbie, think of the 'www' as a file folder name. If you had a website, you could be (though not always) an 'administrator' for that website on your hoster's website. Then you'd have a login to, for example, www.godaddy.com and you would thus have a login to godaddy's hosting area for your website. On that hosting site you'd have the ability to add different 'folders' like 'search' or 'blog'. The search folder might have a search-engine page (I wouldn't bother with that folder but some sites do, if they have a lot of data, for example). The 'blog' folder would be where your blog posts would go, and you can also redirect a wordpress.com (or .org) or a blogger.com to the subdomain blog.domainname.com, so that you can use the subdomain 'www.domainname.com' for whatever you want and the blog subdomain just for your journaling. There's more info available, but that's the gist of it. www is a filefolder, so is blog., etc. and each subdomain can be 'restricted' to specific users with logins, etc.
Upvotes: 0
Reputation: 76807
In DNS it may be considered a sub-domain - in general this position is the hostname.
In your example this isn't even a hostname - it's just the language prepended.
Like this translations of multilanguage sites get separated ('en' is quite the default).
Usually this is all the same virtual host - just with different language resources.
Just create a sub-domain called *.yourdomain.com to enable wildcard DNS.
Upvotes: 0
Reputation: 136
It's called a subdomain. Creating a subdomain varies on who you have your domain name registered to. A quick google search should be able to solve this for you.
Upvotes: 12