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
David Andrews
7,417 PointsMy website only loads without the www prefix.
When I try typing in my address with the www prefix the browser says the webpage is not available.
4 Answers
Ethan Lowry
Courses Plus Student 7,323 PointsTry emptying your browser's cache and clearing your cookies (you can Google how to do this for your specific browser.) then trying again. If that doesn't help (and you've waited a while, sometimes up to a couple days, since registering the domain and setting up your hosting account) then there might be some settings you need to change in your host settings, and I'd probably recommend chatting to their support about that.
notf0und
11,940 PointsHave your registered "www. your website .com" as a subdomain? That's all "www" really is, and has to be registered to point to your website .com if you want it to work.
Hope that works for you.
Aaron Graham
18,033 PointsYou need to add www to your DNS zone file. Depending on how your file is already set up, you will need to use either an A record or a CNAME record, depending on how your web server is listed in your DNS record. My guess is that you just have your origin $ORIGIN yourdomain.com, several NS and MX records, and one A record that lists only an IP address. Something like this:
IN A 123.123.123.123
If that is the case, you can probably just add something like this:
www IN A 123.123.123.123
If you already have an A record pointing to your web server, you can use a CNAME to alias it. For instance, if you already had:
webserver IN A 123.123.123.123
You could use:
www IN CNAME webserver
Hopefully this will at least point you in the right direction. You probably want to consult the documentation of the company you have your domain name registered with. They probably have something that will explain the specifics of how to go about doing this.
David Andrews
7,417 PointsOkay, thanks guys! I think I have it figured out now.