XF 1.2 Redirect subdomain to subdirectory on new server


Well-known member
I need to redirect all of the search engine traffic from community.tuxreportsnetwork.com to www.tuxreports.com/community. Most of the redirects found via search are for subdomain to subdirectory using the same domain.

Does anyone have a suggestion?

This is what I have in the .htaccess right now.

RewriteCond %{HTTP_HOST} ^community\.tuxreportsnetwork\.com
RewriteRule ^(.*)$ http://www.tuxreports.com/community/$1 [R=301]
But this only redirects to the root of the XenForo install.
Last edited:


Well-known member
Sorry to bump - but does anyone have any ideas? The .htaccess redirect in OP does not work because it does not take the redirect to the particular thread.

@Jake Bunce - do you have any suggestions?

Jake Bunce

XenForo moderator
Staff member
It looks correct to me. I might change [R=301] to [R=301,L] to ensure the execution of that rule is the last one to execute.

Otherwise please provide specific examples of old to new URLs so I can confirm your rules.


Well-known member
Well this sucks. While trying to handle the stupid bot doing brute force on the site ... I get the email from Google Webmaster Tools stating "Googlebot can't access your site" message that I was anticipating.

Googlebot has recorded several thousand attempts to go to community.tuxreportsnetwork.com and cannot ... :(