"Enhancing a Simple PHP Application" was retired on December 19, 2016. You are now viewing the recommended replacement.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Build a Simple Dynamic Site with Node.js!
You have completed Build a Simple Dynamic Site with Node.js!
Preview
Now we'll use the username to redirect to the correct location.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
So, if we go down to the post part of our
home route, we can see that
0:00
we're just printing out the username to
the response and we end the response.
0:02
Actually, what we want to do is use this
username.
0:08
And add a slash in front of it and then
redirect to that username.
0:12
So want to do something like this.
0:16
Redirect to slash chalkers slash whatever
your username is.
0:20
So we need to figure out some headers on,
and how will we need to do that?
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up