Error page template (404.php) not loading
-
When invoking a 404 Page Not Found I’m getting either a blank screen or a partially loaded page (i.e. fragments of code from the template 404.php).
I’ve got my WordPress blog in a subfolder of my domain. I’m using the htaccess file to set errorDocument at the root of the site, and this works fine when the requested file is outside of the blog. For example:
https://www.lessfussdesign.com/nopage
But any URLs within the blog and I get this:
https://www.lessfussdesign.com/blog/nopage
I’ve tried switching to the default or classic theme (thinking it might be something I’ve done in my theme) but I get the same problem. It’s only for 404 errors, so for example an Access forbidden is fine, even when the URL is in the blog:
https://www.lessfussdesign.com/blog/wp-content/themes/
I’ve got a 404.php template in my theme folder, but clearly this isn’t being called. Has anyone come across a similar problem, or can think of something (probably obvious!) that I’m not doing/should be doing?
- The topic ‘Error page template (404.php) not loading’ is closed to new replies.