Learn about Centmin Mod LEMP Stack today
Become a Member

shorter routes addon and xenforo 2.0

Discussion in 'Forum software usage' started by dotpro, Feb 7, 2020.

  1. dotpro

    dotpro New Member

    13
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    5:47 AM
    Hi,


    I need some help with the redirects. Planning an upgrade of forum running 1.5 xenforo and the new version does not support the shorter routes addon.

    I tried and tested the method here to redirect but it doesn't work so posting here for some guidance:
    https://xenforo.com/community/threads/th-shorter-routes.89963/page-3

    Once I upgrade to xf 2, the URLs will be

    mydomainforum.com/forums/name-of-the-sub-forum.f2/
    mydomainforum.com/threads/nam-of-the-threadtopic.t2/

    Shorter Routes addon was taking "/forums/" out of the URL. I will probably use route filters to eliminate that extra "forums" in the url to this:
    mydomainforum.com/f/name-of-the-sub-forum.f2/
    mydomainforum.com/t/nam-of-the-threadtopic.t2/

    What should the nginx conf file have for redirect to work, from old urls to this?
     
  2. wmtech

    wmtech Active Member

    175
    44
    28
    Jul 22, 2017
    Ratings:
    +132
    Local Time:
    11:47 AM
    You could simply create a new route in XenForo "/forums" => "/f".
     
  3. dotpro

    dotpro New Member

    13
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    5:47 AM
    Thanks for the reply.

    Yes I can but it would not redirect search traffic to new structure.
     
  4. dotpro

    dotpro New Member

    13
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    5:47 AM