1. 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

Discussion in 'XenForo Questions and Support' started by Solidus, Mar 23, 2014.

  1. Solidus

    Solidus Well-Known Member

    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
     
  2. Solidus

    Solidus Well-Known Member

    Problem solved.
     
  3. Amaury

    Amaury Well-Known Member

    For others that may come across this issue, it would be helpful if you would post what the solution was.
     
    wedgar likes this.
  4. Tracy Perry

    Tracy Perry Well-Known Member

    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.
     

Share This Page