So I’m pretty familiar with using a segment variable to show information on a page. We do it all the time, actually. So I’m confused as to why this isn’t working.
The basic idea is that I want to use category URL’s to show lists of entries, but I don’t want the category trigger in the URL..these all need to be top level directories. Essentially I’ll build out my own top level navigation with {category_url_title} and let the index page show the proper info based on the URL.
So in my site index page I’m trying to do something like:
{if segment_1 != ""}
Show category list based on URL Here
{/if}
{if segment_1 == ""}
Show homepage
{/if}But if I go to a url like http://site.com/support it gets redirected to the 404 page (I’ve turned off strict URl’s btw). It does work if I go to the url http://site.com/site/support where “site” is the template group that my site index page lives in.
I’ve never tried segment conditionals on the site index page….is this not possible to get the conditionals to work without a template group in the URL?