• 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

Chimpie

Well-known member
#1
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.
 

Attachments

Chimpie

Well-known member
#3
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.
 

Chris D

XenForo developer
Staff member
#5
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:

Introduction
Installation
Configuration
Support

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

/pages/manual-introduction/
/pages/manual-installation/
/pages/manual-configuration/
/pages/manual-support/

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

upload_2014-7-28_22-43-35.png

Those URLs would become:

/manual/introduction/
/manual/installation/
/manual/configuration/
/manual/support/

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.