Chimpie Well-known member Jul 28, 2014 #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 route-filter.webp 20.3 KB · Views: 13
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.
P Paul B XenForo moderator Staff member Jul 28, 2014 #2 You should enter pages/page-name/ and page-name/ in the respective fields. Upvote 0 Downvote
Chimpie Well-known member Jul 28, 2014 #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. Upvote 0 Downvote
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.
P Paul B XenForo moderator Staff member Jul 28, 2014 #4 Correct. You can change a route filter globally, but not remove it. Upvote 0 Downvote
Chris D XenForo developer Staff member Jul 28, 2014 #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: 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. Upvote 0 Downvote
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: 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.