• 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

Jake Bunce

XenForo moderator
Staff member
#2
Add these rules to the top of the .htaccess file in your web root:

Code:
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.