R4L/Services/Hosting/Basic/SubDomains

From R4L Help Wiki
< R4L‎ | Services‎ | Hosting‎ | Basic
Revision as of 13:39, 1 April 2014 by Admin (Talk | contribs)

Jump to: navigation, search

Subdomains allow you to organize your website into different sections with unique names based on your site. For example, Register4Less.com's help pages are available by typing in on your brower's address bar http://help.Register4Less.com. help in this example is a subdomain of http://Register4Less.com.

On our hosting system, you will also notice that by default http://yoursite.com will automatically updated to http://www.yoursite.com. "www" in this case is a subdomain of "yoursite.com", and is created for you automatically. If you have a subdomain configured and someone types in "www." in front of this, they will get the subdomain web page you have uploaded.

To configure subdomains for your site, you will need to create a separate directory called subdomains, and then create folders under this directory. Each folder under this directory will be the subdomain that you wish to create. You will also need to add a wild card entry in a custom DNS zone file for your domain.

  • Log into your account and go to DNS > Edit Custom DNS Zone. If you are prompted to load an existing zone, choose the R4L Standard Zone.
  • In the A Records section, add a record with an Asterix "*" on the left column, and have it point to the same IP address as the record for "@".
  • Click the Save / Publish Zone.
  • Connect to your hosting account with the FTP program you use (we recommend FileZilla).
  • Create a directory called subdomains.


Creating Subdomains

The easiest way to explain the setup is with an example, so we going to use

  • example.com as our domain name. You will of course need to replace this with your domain name
  • We will use photo and home as the subdomains we will be creating.


Step by Step Guide.

  • Connect with your FTP program, and change directories to subdomains
  • With your FTP Program, create the directory photo.example.com (remember, replace the example names with the subdomain you want and your domain)
  • Create the directory home.example.com
  • For the subdomain photo.example.com, when you want to upload content for it, after you connect with FTP, change directories to subdomains, and then photo.example.com.
  • For the subdomain home.example.com, when you want to upload content for it, after you connect with FTP, change directories to subdomains, and then home.example.com.
  • Remember, the first file that will be loaded for any subdomain should be called "index.html"