1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Route Filter for Pages

Discussion in 'XenForo Questions and Support' started by Chimpie, Jul 28, 2014.

  1. Chimpie

    Chimpie Well-Known Member

    Is it possible to create a route filter so that when I create a custom page, it can just be domain.com/test-page instead of domain.com/pages/test-page?

    I read the help page and thought I had it set up right but I guess not.

    Attached Files:

  2. Brogan

    Brogan XenForo Moderator Staff Member

    You should enter pages/page-name/ and page-name/ in the respective fields.
    Chimpie likes this.
  3. Chimpie

    Chimpie Well-Known Member

    Thanks. So this will have to be set up for each individual page I want to operate this way, correct? There's no way for this to be done for all pages.
  4. Brogan

    Brogan XenForo Moderator Staff Member


    You can change a route filter globally, but not remove it.
  5. Chris D

    Chris D XenForo Developer Staff Member

    Actually, it can be automated slightly but yeah, you certainly can't remove the route completely.

    Let's say you were producing a manual using XenForo pages.

    You'd maybe have:


    Without Route Filters, you would probably have a URL structure like this:


    So, if you then set up a Route Filter like this:


    Those URLs would become:


    The beauty is, because that finds only pages/manual-{name}/ it means you can set up others, or even have pages that still use the pages route.
    Chimpie and Brogan like this.
  6. Chimpie

    Chimpie Well-Known Member

    Now that's an explanation. Thanks Chris!

Share This Page