comment 1

Sub-domains on your site

Subdomains are a tricky thing. In laymans terms all it means is to have something else in place of the ‘www’ in your web address. So for example:

http://www.keithrozario.com <- This is my domain

http://resume.keithrozario.com <- this is my sub-domain, more specifically the resume sub-domain.

Creating a subdomain allows you to section out your website, while allowing your urls to look cleaner. Personally I’m a bit ‘allergic’ to the ‘/’. I much prefer a subdomain over a  ‘/’.

http://resume.keithrozario.com (good!)
http://www.keithrozario.com/Resume (not good!)So how do we setup a sub-domain on our website?

It’s really simple, but before I get to that there needs to be some explanation here. When you create a sub-domain, you are creating essentially a new site. A new site means you have to upload your stuff into a new ftp location, which means that data from one site has no access to the other locations (this is especially true host like nearlyfreespeech, but not true for host like dreamhost). That means my wordpress blog at http://www.keithrozario.com, can’t access materials (images/html files) from my resume sub-domain http://resume.keithrozario.com. This has it’s pros and cons:

Pros: sub-domain is completely isolated from the domain, it’s great and clean. You can delete it and the other sub-domains remain untouched.

Cons: sub-domain can’t share content between the 2 (at least not easily). This means that shared content like templates/designs need to replicated. This doesn’t just waste space, but makes it difficult to upload changes as we need to do it twice.

As to why some other hosting websites allow you to have sub-domains linked to sub-directories (thereby eliminating the Con), here’s why nearlyfreespeech has to say:

Please be aware, however, that we do not use the subdomain-is-subdirectory hack (unfortunately) made popular by a certain brand of web hosting control panel software. You can use our service to create multiple independent sites and then assign or remove names from one or more NearlyFreeSpeech.NET DNS domains at your discretion. There is no connection between a site and a domain name or subdomain other than what you create, and there is no correlation at all between subdirectories of a site and subdomains of a domain.

So now that you understand (hopefully), let’s get jiggy with it.

1) Logon to your NearlyFreeSpeech control panel

2) Go to the Sites Menu

3) Under the Actions menu, select ‘Create new Site’

4) Choose  a ‘proper’ shortname. Nothing generic please , something very specific, in my case it’s keithrozariosresume

5) Then when it prompts for Use another name, select ‘YES’. In the text box  labled “if so what is it” enter your subdomain. For e.g. resume.keithrozario.com

6) Then hit the “Create Now” button

So then you’ll get a new username for your sFTP upload. Connect there and then you can begin your new website. Here you can install new wordpress, or Joomla, or like I have done, posted my CSS based Resume on it. Feel free to have a look at http://resume.keithrozario.com

In dreamhost it’s much easier, but that’s for another post.

*Post Photo taken from http://www.flickr.com/photos/streetart/324448335/sizes/s/in/photostream/

1 Comment so far

  1. Pingback: Creating a Wiki on your website | {keith's.blog}

Astound us with your intelligence