May 10 2009
Posted by Webmasters-central.com as Web Design
What are subdomains?
Subdomains are the third level domains that are used to organize your web site content.
They are just like folders under your root directory. But they will have a special URL to access.
http://www.yoursite.com
is the regular URL with out a subdomain.
http://products.yoursite.com
is an URL with subdomain “products”. Here the:
.com is the first level domain
yoursite is the second level domain
products is the third level domain
What is the purpose of subdomains?
1. You can organise your web site like support, help and FAQ at ‘http://support.yoursite.com’.And your products and order links under ‘http://store.yoursite.com’ etc.
2. If you have members or you want to share your disk space with your friends and family, you can create a subdomain for each of them and give access with their own user name and password.
3. You can also organise the email addresses that comes to seperate departments on your web site like support@support.yoursite.com, orders@store.yoursite.com etc.
4. Long URLs are cut short to a subdomain, so it is easy to remember the short URL instead of long URLs. Especially this is true with your affiliate links which are long and with many special characters like ‘?’,'&’ etc. This is difficult to remember. So in these cases creating a subdomain for that long URL helps to remember it well.
Where to create subdomains?
Your host should enable subdomain creating feature for you. Number of subdomains that are alloted for you depends on the type of hosting plan you are using. You can use ’subdomains’ icon or text link in your control panel to create, delete and edit your subdomains.
Now a days almost all hosts allot unlimited subdomains with all hosting packages.
1. Login into yur host panel. You will see a link ‘Subdomains’.
2. Creating a subdomain is easy with your graphical user interface.
1: Enter subdomain name. Create by clicking ‘Add’ button.
Once a subdomain is added, it will be listed in the bottom three dropdown lists.
2: You can redirect your subdomain. Useful in redirecting seperate subdomains to your affiliate products.
3: Remove redirection.
4: Delete subdomains. Deleting subdomains from this list doesn’t delete the folder created during the subdomain creation. So you have to delete it manually.
Caution:
1. If you offer subdomains to your members or friends means you are responsible for the bandwidth and disk space usage.
2. What will be the paths to files and cgi/php scripts?
If you have an image ‘logo.gif’ under ’support’ subdomain then you can keep your image file path as:
http://support.yoursite.com/logo.gif
But NOT like this:
/support/logo.gif
Same with the cgi-bin too.
The path to cgi files should be:
/public_html/support/cgi-bin/scriptname.cgi
The URL for cgi files will be:
http://support.yoursite.com/cgi-bin/scriptname.cgi
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||
25 Responses
Lloyd Bartholomew
October 8th, 2009 at 5:10 pm
1This information has made this subject very clear to me a novice.
I will peruse more of your subject matter.
Thanks very much for the clarity in explaination.
codingcereal
November 5th, 2009 at 11:09 am
2hi
i was able to create subdomains in my cpanel the problem is when i create http://subdomain.domain.com it keeps on redirecting to http://domain.com/subdomain.
any idea on how to fix this?
thanks
WellOiledPC
November 5th, 2009 at 11:01 pm
3Very useful information written in a lucid manner. A few typos, but nothing major – wish you correct them though…
Webmasters-central.com
November 28th, 2009 at 5:59 pm
4Check your root .htaccess file to see any kind of redirection you have set up. Also ask your host on how to solve it.
.
Neelesh
May 11th, 2010 at 7:36 am
5i have create subdomain but when i added A record my main domain stopped working. please help me how to restart my web site
Webmasters-central.com
May 11th, 2010 at 10:50 pm
6Once you crete a subdomain in your hostpanel, it will create an ‘A’ record automatically in your site DNS zone. So I am not sure why you added A record again.
You can approach your host to sort this out.
.
Ansar
May 19th, 2010 at 1:09 pm
7I create my subdomain like this- ansar.mydomain.com
but when i enter this address in browser adress bar showing error. page not found. where i hav to upload my file. in the main directory or i hav to creat any new dierctory. and what should be the file name. (index.html)?
Ansar
Webmasters-central.com
June 1st, 2010 at 5:11 pm
8You need to upload index.html into the ‘ansar’ folder. So when you access ansar.yoursite.com, it will show the index page.
.
Vickie
June 4th, 2010 at 2:25 pm
9Excellent post discribing domains and subdomains. Well written easy to understand and read. If you are new to the internet as I am, then read this post.
Nitin
July 1st, 2010 at 7:52 am
10i have http://www.subdomain.domain.in.
i keep my http://www.domain.in website files at ftp://ftp.domain.in/domain.in/wwwroot/ folder.
my question is where should be the http://www.subdomain.domain.in websites file should be kept???
Nitin
July 1st, 2010 at 7:56 am
11i have also tried putting default.aspx file in ftp://ftp.domain.in/domain.in/wwwroot/subdomain/ folder. still i’m not able to open the page i have created i.e. default.aspx…
please let me know the solution…
Eszter
October 6th, 2010 at 6:22 am
12Hello,
I created a subdomain, but it does not appear in the browser, it is forbidden. What is the problem?
profidesign
October 21st, 2010 at 12:42 pm
13hi i have a websites in localhost like wamp and i work with dremweaver , please how can i put in subdomains , i have a host , i uplod the folder bot dont work plz
james
November 2nd, 2010 at 1:22 pm
14Thanks for the post.. I like the way failblog.org uses subdomains for each of their sites.. keeps it very simple and everything is connected.
Jet Heights Jobs
January 22nd, 2011 at 1:03 am
15I want to create a subdomain for our website and I have been searching for answers. This is a very lovely piece…It is definitely useful. thanks for writing.
Nayan broker
March 3rd, 2011 at 1:21 am
16Excellent post if you have GUI version to work with subdomains. Also you need to add to your DNS server before adding subdomains to second level domain.
Harrison
March 11th, 2011 at 12:09 am
17I don’t need to look for more information on creating a subdomain, thanks to you. Great post.
paull stanley
June 25th, 2011 at 12:31 am
18If it helps anyone here I also have a tutorial showing how to setup and configure subdomains and virtual hosts of Wamp here: http://www.itutorblog.com/2011/06/how-to-create-a-subdomain-on-wamp/
Raju
September 28th, 2011 at 5:37 am
19Can we redirect this subdomain to blogger blog or wordpress blog???
I have a blog in blogger and want to redirect it to my subdomain and is it possible??
Rajendra prasad
October 15th, 2011 at 11:02 am
20Thanks for the post it is very help full for me
BABU
October 27th, 2011 at 1:11 pm
21I created a subdomain, but it does not appear in the browser WHY? PLEASE HELP ME
Carlos Agarie
November 6th, 2011 at 9:59 pm
22Good article. It was very helpful as an introduction to the subject. Thanks!
Luis
November 21st, 2011 at 12:21 pm
23Man, THANK YOU, very helpfull for me, and a free orientation. Thank you again. Keep the good info
Debdatta Sarkar
December 9th, 2011 at 1:37 am
24Excellent article over Subdomain. Many kudos.
Am working over subdomain creation in php. It would be great if I get aid for that purpose.
9 Domain Subdomains Sites | Best Hosting Companies
December 20th, 2011 at 3:33 am
25[...] What is a subdomain? How to create a subdomain? | Internet .May 10, 2009 Subdomains are the third level domains that are used to organize your web site content. They are just [...]