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
Yahya Elfaqir
3,156 PointsWhenever i type www. before my website it opens the host company website, how can i fix it?
When I open mywebsite.com it works while if i do www.mywebsite.com it sends me to the hosting company? I don't know how to fixe it, can you please guys help
4 Answers
Gloria Dwomoh
13,116 PointsThat could be DNS propagation check this . You can ask your hosting about it as well to find out what is going on exactly.
Mohd Maqbool Alam
Full Stack JavaScript Techdegree Student 5,715 Pointsin Your Web Hosting Company cpanel Redirects" option within cPanel to redirect the non-www URL to the URL that includes the "www" prefix.
notf0und
11,940 PointsIf you're still having troubles with this, I suggest adding "www" as a subdomain for your website.
I'm guessing that will fix your issue, though you may have to give some time for it to take effect.
Please let us know if you solve this issue :)
Yahya Elfaqir
3,156 PointsYep the issue is solved I flushed the cache and it worked