Hi
I have a common header.html template file included on all pages including my 404 template, so there’s just one version of the site HTML.
But in my header.html page I also am outputting some content depending on the {last_segment}.
This results in an issue when someone goes to a template that does not exist, but a page that does, e.g.
http://www.mydomain.com/madeuptemplate/about-us
EE shows the 404 page because the template group does not exist, but then my common code I am using in the head is outputting some content based on the last_segment about-us because this does exist.
Soooo I wondered if there is some code I can use to check if the user is on the 404 page, then I can not output this code then.
Thanks