• 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

#3
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?

Thanks
 

Robust

Well-known member
#4
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/
 
#5
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?

Thanks.
 

Mike

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