Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

How do you add a tag in-front of your domain?

Hello treehouse members,

I was wondering how you add a "subpage" to your domain so it is stated like this:

www.subpage.mydomain.com

Could anyone give me a hint how to code this?

Thanks!

KR

Benjamin

3 Answers

my case ( your case is almost same i m sure ), also you can contact your webhosting provider if you want :)

  • just logg to your Web Provider setup page ( my is setup.sk )
  • set ROOT SUB to "/_sub" for example nex to it you have to have " *.yourdomain.sk", * represent folders name inside "/_sub" folder
  • done :) My testing hosting for example :

alt text

making new subdomain ?

  • Loggin to your FTP
  • LOCATO to your ROOT for subdomain
  • make how manny directorys you want
  • Insert your webfiles :)

I think what you are trying to do is a subdomain. For example, a subdomain doesn't have the www and the front, instead, the subdomain replaces the www part: www.mysite.com (without subdomain, main site) design.mysite.com (subdomain sample) mobil.mysite.com

In this case, I go to my hosting site and go to the DNS Management, or domain management and create a new one, then on the ftp I create a root folder for that site. Every hosting is a bit different to you need to find specific instructions for the hosting you are using.

Thanks a lot for the input Anain and Patrik!

I now know how to get this done!