• 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

Solidus

Well-known member
#1
Hi.

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

Thanks
 

Tracy Perry

Well-known member
#4
For others that may come across this issue, it would be helpful if you would post what the solution was.
Probably something similar to
Code:
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.