I have strict URL’s on, and a 404 page specified.
I have hidden a template with underscore as per documentation. When accessing this template via the front end of the website: http://domain.net/index.php/layouts/_hidden
I am shown the index template for that group (200 OK status code). Rather than a 404 page and code.
Is this correct, as it is not really what i would expect or like! How can i change this behaviour?
Second part - is the hidden template still appears in “pages” field drop down list. It would be nice if this (or another method) thinned out the drop down so its not crazy scary for the user to select from.
Third part - can i hide a group? Fourth - can i remove the index from a group?
How can i change this behaviour?
Try this (untested):
{if segment_2 ^= "_"}{redirect="404"}{/if}
Third part - can i hide a group?
Not easily. You can leave out the default group, and you could probably use mod_rewrite, but I think Template Routes would be far superior a solution.
Fourth - can i remove the index from a group?
No, but you can simply stick
{redirect="404"}
in there and just never use it.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.