Praneetha
Praneetha

Reputation: 311

Does timber have default 500 template like it has 404?

I am using timber starter theme for my wordpress website along with twig templates. I can render 404 template given by timber for 404 errors. I want to know if timber provides or handles even 500 error? I want to show custom error page for the 500 errors. Any help please? Thanks in advance!

What I tried already- similar to 404 templates I created two files as 500.php and 500.twig which has my custom error template. However this template is not rendered when I get 500 error.

Upvotes: 0

Views: 176

Answers (1)

Jared
Jared

Reputation: 1734

Because 500 errors are server errors, so this would need to be configured "underneath" the WordPress install/layer. Even without Timber, WordPress doesn't provide this kind of customization. You may be able to set this with Apache or Nginx

Upvotes: 0

Related Questions