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
Alex Chow
4,521 PointsCustomizing the 404 page and others
Hello,
I've created a contact form for my personal site using a tutorial form the treehouse blog site: http://blog.teamtreehouse.com/create-ajax-contact-form. The contact form calls on the 404 error page when the information isn’t fully filled in, the 200 page when it is successfully sent, and 500 page when there is an error sending the information. Everything works fine but I was curious to know if I could customize these pages to match my site. I’ve tried searching different databases but I haven’t found anything yet.
Thank you for the help.
1 Answer
Nick Ocampo
15,661 PointsYes, you can. You should have a 404.html page that works just like any ol' html page.
Alex Chow
4,521 PointsAlex Chow
4,521 PointsOkay, so if I create this separate 404.html page and customize it with css, how would I call it from mailer.php file? In that file, there is the following line: