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

XF 1.2 URL Structuring

Discussion in 'XenForo Questions and Support' started by r_j, Oct 30, 2013.

  1. r_j

    r_j Member

    Hey guys, so now I need to move some stuff and fix some url structuring. Have a couple of questions. If I wanted to move my forum from the directory its in now, into the root directory so that it ends up being www.mysite.com/forums/, Is there a way of doing this and creating the 301 redirects to the new locations for seo reasons? Just wondering if that would be possible.

    Also posts show up as www.mysite.com/forum/threads/post-title. How would I go about making it so that the forum name shows up in the link, so that its like www.mysite.com/forum/mlb-talk/post-title.82723.
  2. Jeremy

    Jeremy Well-Known Member

  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Move your XF files from the subdirectory into the web root. Delete the subdirectory. Then add this to the top of the .htaccess file in the web root (which should then be XF's .htaccess file):

    RewriteEngine On
    RewriteRule ^subdir/(.*)$ /$1 [R=301,L]
    Not possible without code modifications.
  4. r_j

    r_j Member

    EXCELLENT! Thanks guys!

Share This Page