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

XF 1.5 Route Filter

Discussion in 'Troubleshooting and Problems' started by Dynamic, Feb 3, 2016.

  1. Dynamic

    Dynamic Well-Known Member

    Hi guys.

    So I am getting this strange error. Here is what I have

    Page Parent (http://something.com/pages/parent/)
    - Page Child (http://something.com/pages/child/)

    I have added route filters to rename the pages url.

    Page Parent = http://something.com/parent/
    Page Child = http://something.com/parent/child/

    Everything is working as it should, but here is the problem I am getting;

    When I go to http://something.com/parent/child/ it works
    When I go to http://something.com/parent/child it fails

    Is there something I have done wrong?

  2. Chris D

    Chris D XenForo Developer Staff Member

    I've just tested this myself and it works fine.

    Make sure the find and replace routes all end with a slash.
  3. Dynamic

    Dynamic Well-Known Member

    They all end with a slash. No idea what is going on with it...

    It may be a server setting. Thanks for the reply though.
  4. Mike

    Mike XenForo Developer Staff Member

    Can you confirm your exact route filter details?
  5. Dynamic

    Dynamic Well-Known Member

    Hi Mike,

    Sure thing.

    Find Route: pages/parent/
    Replace With: parent/

    Find Route: pages/child1/
    Replace With: parent/child1/

    Find Route: pages/child2/
    Replace With: parent/child2/

    Find Route: forums/
    Replace With: community/

    Find Route: account/
    Replace With: my/

    They are all of the route filters I have in place.


Share This Page