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 trialPaul Henri Tokwaulu Likunde
10,895 PointsHow can I make my "About" page appear directly from the "index.html" page? When I click on About I'm having a 404 Error
My "about" page only appears from the preview on my "about.html" file and not from the Home page (index.html) on the browser. I'm thinking that for someone reason my "index.html" and my "about.html" aren't linked to each others. Where in my code should I focused on to make sure that I able to linked the both pages?
2 Answers
Darren Joy
19,573 PointsWhen you say index page from your browser, you are referring to trying to view it outside of WorkSpaces?
If so, the path the 'a href' points to, outside of WrkSpaces, doesn't exist yet on your own computer. You need an about.html somewhere on your computer for the index.html to 'point' to.
think about if/when you save a webpage on your system, it saves the html file, as well as a folder named with the same name as the html file, which includes all the images, and other pages like css to make the page format and look pretty. This is what WorkSpaces simulates, a series of files that index.html references, as if it was your hosted site.
Darren Joy
19,573 PointsThanks man. Glad you figured it out...
Paul Henri Tokwaulu Likunde
10,895 PointsPaul Henri Tokwaulu Likunde
10,895 PointsThank you very much for the reply Darren Joy . I actually hadn't made a spelling mistake on my code I had registered my file as Index.html with capital "I" and my code were under index.html I was able to resolved that issues few Hours back by renaming my file.