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

What's the URL structure options?

Discussion in 'XenForo Pre-Sales Questions' started by zastavra, Jun 23, 2013.

  1. zastavra

    zastavra Formally Stevez

    Hello,

    What URL structure can I use with XenForo?

    I'd like to have by default:

    domain.com/forum/f12345/ for forums
    domain.com/forum/t12345/ for threads

    Is there an option for that?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    That might be possible in 1.2 with Route Filters. Not had a chance to check that out yet.

    @Mike?
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    You can't have the same route /forum for forums and threads.
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    I was thinking that might be the directory rather than the route.
     
  5. zastavra

    zastavra Formally Stevez

    It is the directory, yes. The route is "/t12345/ and /f12345/.
     
  6. Mike

    Mike XenForo Developer Staff Member

    Not exactly because your replacement would have to be "t{id}" which isn't allowed. You could go with t/{id} and f/{id} provided content titles were turned off in the options. (t/12345/ and f/12345)
     
    Chris D likes this.
  7. zastavra

    zastavra Formally Stevez

    Well, I have a vBulletin forum with vBSEO installed using the URL structure that I've nentioned above and I'd like to get rid both (vB - vBSEO) BUT without to change the URL structure. I've done this a couple of times in the past and I'd like to avoid to many 301 redirects for the same URL if possible.

    Any suggestion would be appreciated.
     
  8. Mike

    Mike XenForo Developer Staff Member

    You would need to modify the XF code to do what you want - it's not possible out of the box.
     
    zastavra and Matthew Hawley like this.
  9. Boothby

    Boothby Active Member

    I think during the import all IDs are re-assigned anyway, right? Therefore, you will not be able to avoid the 301-redirects. The best were if you would stay with the new xf-url-structure.
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    During an import you can keep the IDs if you wish.
     
    zastavra likes this.
  11. zastavra

    zastavra Formally Stevez

    So, if I'm going to need help for this I guess you guys will help me, right?
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    You would need to have a custom add-on made.
     
  13. zastavra

    zastavra Formally Stevez

    Who can create one for me?
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to pay a developer to do so.
     
  15. zastavra

    zastavra Formally Stevez

    Yes, but where can I find one? Can you suggest?
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

  17. zastavra

    zastavra Formally Stevez

    I'd like to inform that what I asked it can be done with Route Filters: forums/{name:digit}/ chanched to forum/f{name:digit}/ and threads/{name:digit}/ changed to forum/t{name:digit}/. My forum is up and running Xenforo.

    The only think I couldnt do is redirect the old forum home page (domain.com/forum/) to the new (domain.com/).
     

Share This Page