• For some reason, I don’t get a 404 error on invalid URLs. My theme doesn’t have one, but I assumed WP would still process it as such. If an invalid URL is entered I just get a completely blank screen, with the URL still shown in the browser navigation toolbar. I have been through the topics on creating a 404 process and have checked the .htaccess file, but still no joy. Can anyone help on this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You either need a 404.php template file in your theme or you need to edit each template to include a 404 message as within an else block at the bottom of The Loop.

    Thanks Esmi. I had created a 40.php template file and added it within the theme… to no avail. However, I will look at including the 404 message block in each template. Thanks. I’ll let you know if I can crack it. I’m a WP novice!

    Make sure that your .htaccess file doesn’t include any sort of 404 directive. The idea is to let WordPress handle it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No 404 / blank screen’ is closed to new replies.