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

Development Tools

Why isn't my Custom 404 Error Page working?

Here's my .htaccess file:

ErrorDocument 404 /404.php
Redirect 301 /portfolio.php http://timrohweder.com/portfolio/
Redirect 301 /testimonials.php http://timrohweder.com/testimonials/
Redirect 301 /about.php http://timrohweder.com/about/
Redirect 301 /contact.php http://timrohweder.com/contact/
Redirect 301 /bandg.php http://timrohweder.com/portfolio/b-and-g-plumbing/
Redirect 301 /threed.php http://timrohweder.com/portfolio/three-d-landscape-and-concrete-construction/
Redirect 301 /feetforfreedom.php http://timrohweder.com/portfolio/feet-for-freedom/
Redirect 301 /ipsum.php http://timrohweder.com/portfolio/intro-to-ipsum/

Here's my site: http://timrohweder.com

Strangely enough, no 404 page at all is shown. It simply redirects to the home page and keeps the non-existing URL in the address bar.

Thanks for any help!

2 Answers

Were you able to fix this? When I go to http://timrohweder.com/monkeysword I get a 'Page not Found' page.

It started working after I submitted a ticket with Bluehost... Must have been something configured on their end I guess? Thanks for checking it!