Forums

No 404 / blank screen (4 posts)

  1. Yellowfields
    Member
    Posted 3 years ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    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.

  3. Yellowfields
    Member
    Posted 3 years ago #

    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!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic