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

Why do I get the message "The requested URL /About.html was not found on this server." after trying to open links?

Hi guys,

I'm trying to set up my "About" section for my first page. Unfortunately, I get this error message while trying to do this: "The requested URL /About.html was not found on this server."

Are you guys able to help me out? I don't know what is wrong with my code right now.

This is my Workspace: https://w.trhou.se/yeuhp5tmx9

3 Answers

The link is case-sensitive. You have linked to "About.html", but your filename is "about.html".

Wow, thank you so much! I wasn't aware that this is something I have to take care of. It's finally working as intended.. Awesome! :)

Firstly, having both the index page and about page exactly the same makes it difficult to test, make a distinct difference in the pages. However, i could not see any problems with either html files so i ran them on my computer and they worked perfectly fine, i recommend; checking you saved your work before previewing it and also check the spelling of the href link, ensuring it is the same as the page you wish to go to (case sensitive)

Good luck.

Hello and thank you for your feedback.

I changed the h2 element to ensure that both pages are different. My h2 Element on my "About" page is now " <h2>About</h2>". I saved all changes before trying to access my About page. I have one question regarding the href link and the page I want to go to. When you say "page" in this context, you mean the file called "about.html", correct? This means the href link (<li><a href="About.html">About</a></li>) must be identical with the page (about.html). Is this correct?

I'm sorry, I'm still pretty new to coding and I hope my questions are not that dumb.

The section between your tags,

<a href> ---->HERE<----- </a>

Can include any case font you would like. That is what is printed to the page, to represent the url.

The section inside of your url,

<a href=" ------> HERE <------- "></a>

Must match your filename in the file browser on the left hand side. So...

<a href="about.html">ABOUT</a>

is ok, but...

<a href="ABOUT.html">ABOUT</a>

is not ok, because your filename is "about.html"