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

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.
 
Top Bottom