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

PHP Building Websites with PHP Contact Form & Sending Email Named Routes

Caden Adam
Caden Adam
16,257 Points

404 on contact page for local server

running XAMPP on mac. Followed everything to the 't', about.twig loads in localhost but it breaks into 404 when I click on contact

2 Answers

Slim and Twig are sensitive. If you are in Workspaces, please post a snapshot here by clicking on the camera icon and following the steps until you open the snapshot. Copy and paste that url here. If you are not in workspaces, please post your index.php, contact.twig, main.twig files. The problem is often an incorrect url in the nav section of the main.twig file.

Boon Kiat Seah
Boon Kiat Seah
66,664 Points

Hi ,

I was faced with the same problem on the local server. Luckily, i found out that the .htaccess file which is the main cause to the 404 or error page you are experiencing. Hope this helps.

regards,

Warren