|
How do I add sub-domains to my Linux Web Hosting package?
A sub-domain is a subdivision of a
Domain Name. While Domain Names need to be Registered with a Registrar,
sub-domains are not and an unlimited number of sub-domains can be created
through Managed DNS service. For example,
a sub-domain
news.yourdomain.com can be created on the Domain Name yourdomain.com.
AW GRUP allows you
to create unlimited sub-domains with your Linux Web Hosting package, by adding a
Star (*) Address (DNS) Record for your Domain Name through the Managed DNS Order (that is included
for free with your Web Hosting package). When a visitor reaches http://<sub-domain>.yourdomain.com, he is served the content from
http://yourdomain.com/sub-domain/. Let's discuss this with a
few examples:
- If someone types http://news.yourdomain.com
in the browser, then our web server will try to fetch the content from
http://yourdomain.com/news/.
So you need to ensure that you have created a folder called news
within your website and
have an index file (within this folder).
- If someone types http://news.yourdomain.com/php/
in the browser, then our web server will try to fetch the content from
http://yourdomain.com/news/php/.
So you need to ensure that you have created a folder called news
within your website and
within that folder, a sub-folder called php with an index file (within php
folder).
IMPORTANTIf someone typed http://news.yourdomain.com/php (without the trailing forward
slash), he would receive a Page not found error.
- If someone types http://news.yourdomain.com/weather-report.jpg in the browser,
then our web server will try to fetch the content from
http://yourdomain.com/news/weather-report.jpg.
So you need to ensure that you have created a folder called news and
have weather-report.jpg (within this folder).
|