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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Brandon Gibbs](https://secure.gravatar.com/avatar/9c72e5916618614a0b58bef7849f9589?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Brandon Gibbs
9,636 Points[RESOLVED] 404 Page Not found... even after it was working on the previous step...
Ok, so I have Slim installed... the whole bit below working just fine as in the video...
.....
$app->get('/hello/:name', function () {
echo "Hello, $name";
});
.....
HOWEVER when the instructor moves to the next example...
$app->get('/', function () {
echo "Hello, this is the homepage.";
});
$app->get('/contact', function () {
echo "Hello, feel free to contact us.";
});
$app->run();
I get the 404 error like we were getting before adding the .htaccess file.
So... it was working, and without changing a thing, and following Hampton's teaching... I am getting a 404 error.
Any help / suggestions would be great. Thank you.
2 Answers
![Brandon Gibbs](https://secure.gravatar.com/avatar/9c72e5916618614a0b58bef7849f9589?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Brandon Gibbs
9,636 PointsSo, when in this step in the training .... the last step had '/hello/:name', ... thus my preview url ended with /hello/Brandon... THAT is what I was refreshing ....
HOWEVER.... the training called for us to change to '/', and '/contact' ... So, yeah. If you have this same issue, just clear the /hello and beyond from the url.
![Teena Abbott](https://uploads.teamtreehouse.com/production/profile-photos/1326472/micro_Teena_Abbott.jpg)
Teena Abbott
21,054 PointsI was having the same issue. I figured it out the problem when I happen to glance at the URL.
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 Pointsgood job on solving the problem yourself :)