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

XF 1.3 Move Forum to Sub-domain

Thanks, but I still a bit confuse about redirect rule.

I want to move from /forum/ to forum.mydomain.com. Which rule should I use?



Well-known member
Are you using shared hosting or a VPS/dedicated server? Either way, you'd need to assign the subdomain to the document root, and then change the domain on the software. It's not really a rewrite, unless you want to forward everything from /forum/ to forum.example.com/
I'm on dedicated server and yes, I would like to redirect everything from /forum/ to forum.example.com because there have a lot of posts and threads already. Unfortunately, the FAQ does not cover this type of redirect. Can you please help me out?



XenForo developer
Staff member
In a .htaccess file in the root:
RedirectMatch 301 ^/forum/(.*)$ http://forum.website.com/$1
Adjust the paths/URLs to suit.