My website is displaying a blank page when incorrect/absent URLs are used. But I would like it to show a 404 page such as this template I've created.
I have tried to set my global template preferences, as recommended here, but each time I hit save it reverts back to "none" for the 404 template preference.
I have attempted to use codes such as: {if no_results} {redirect="404"} {/if}
and
{if no_results OR segment_2!=""} {redirect="404"} {/if}
and have even changed "404" to a full URL ... All to no avail.
Oh, and I also created a global variable, {404} using {if no_results} {redirect="404"} {/if} as the content. (Grasping at all straws here!)
My EE and other coding knowledge is very basic, but I can generally understand basic instructions. I've tried searching online for the answer and am coming up blank.
Any advice?