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

XF 1.4 redirect my forum from root to subdirectory and change format for urls full seo

Discussion in 'XenForo Questions and Support' started by jamalfree, Apr 19, 2016.

  1. jamalfree

    jamalfree Active Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Add these rules to the top of the .htaccess file in your web root:

    RewriteEngine On
    RewriteRule ^(members|threads|posts|attachments)/(.*)$ /forums/$1/$2 [R=301,L]
    That will handle the change of directory for the XF routes that you name. The "forums" route isn't handled because that is now a directory.

    The change of URL format within XF should be handled automatically by XF because it canonicalizes all important routes.
    Jarod and jamalfree like this.
  3. jamalfree

    jamalfree Active Member

    Thanks Jack ..................................
  4. jamalfree

    jamalfree Active Member

    oops didnt work!!!!
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It should work...

    I can take a look if you give me FTP access and your forum URL.
    jamalfree likes this.
  6. jamalfree

    jamalfree Active Member

    solved...thanks jack

Share This Page