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

XF 1.2 Changing forum list url

Discussion in 'XenForo Questions and Support' started by Beanjam, Feb 1, 2016.

  1. Beanjam

    Beanjam Active Member

    I must be using the wrong terms because I can't find how to do this anywhere.

    How can I change my main forum list page from www.myforum.com to www.myforum.com/forums/ and also redirect visitors landing on the root to that new url?

    I don't want to move the forums to a sub-directory, only change the url of that main page in preparation for adding a static home page at the domain root later.

    Thank you.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Beanjam

    Beanjam Active Member

    Will this also add the /forums/ prefix to all other pages.. so I'll end up with /forums/forums/news... or /forums/categories/... etc?

    I have seen forums using the forum list url /forums/ like I want to achieve but all other pages still appearing to be as if installed in the root.

    Entering www.myforum.com/forums/ at the moment seems to redirect to / so would it be possible to force that to not rewrite in .htaccess to achieve this, or is that going to upset everything else?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.

    That could be an add-on, or they could have a different index page route set.
    For example: http://support.cliptheapex.com/forums/
     
  5. Beanjam

    Beanjam Active Member

    Ok, thanks for the info. (y)
     
  6. Beanjam

    Beanjam Active Member

    Unless you can tell me why this is a very bad idea this does seem to work.

    Index Page Route: forums/forums/

    Add this to .htaccess above the Xenforo rules: RewriteRule ^$ /forums/ [R=301,L]
     

Share This Page