ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Change default segment behavior?

July 09, 2010 5:14pm

Subscribe [2]
  • #1 / Jul 09, 2010 5:14pm

    devoss

    1 posts

    Is is possible to change the behavior of the URI segments?

    In 2.0 we have site.com/template_group/channel as the default, is it possible to go to site.com/channel/template_group?

    Perhaps an example might help:

    http://www.website.com/us/aboutUs
    http://www.website.com/uk/aboutUs

    So, the template is really the same for both, but I’d really like US or UK to be the first segment so that people can easily get to their localized version of the site by swapping out /us for /uk.  Know what I mean?

    Thanks!

  • #2 / Jul 09, 2010 8:00pm

    The Nerdery

    16 posts

    You could do something like this in the site/index template:

    {embed="{segment_2}/{segment_3}"}

    You’ll have to turn off strict 404 checking for this to work.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases