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

XF 1.2 Redirecting url's to new domain


Well-known member

I've moved my site from domain1.com to forums.domain2.com - what shall I put in htaccess to redirect threads, members ect..?


Tracy Perry

Well-known member
For others that may come across this issue, it would be helpful if you would post what the solution was.
Probably something similar to
RewriteCond %{HTTP_HOST} ^domain1.com$ [NC]
RewriteRule ^(.*)$ http://forums.domain2.com/$1 [R=301,L]
for that specific example. Of course, that doesn't take into account redirecting traffic to either www prefix or stripping www prefix.