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

XF 1.4 301 redirection

Discussion in 'XenForo Questions and Support' started by kankan, Feb 18, 2015.

  1. kankan

    kankan Active Member


    I am migrating my XF 1.1.3 to XF 1.4
    Both site are in the same html bay.
    How can i setup a 301 redirection so that URL call from external site reach my new setup ?
    Mainly for thread urls :
    XF 1.1.3 : http://xxxxx/www/threads/xxxx.ID
    XF 1.4 : http://xxxxx/forums/threads/xxxx.ID ?

    I suppose i have to parse some info in my XF 1.1.3 htaccess.
    is this correct?

    #for all requests to www.xxxxx.com
    RewriteCond %{HTTP_HOST} ^www\.xxxxx\.com\.www\.threads$
    #redirect them to new-example
    RewriteRule (.*) http://www.xxxxx.com/forums/treads$1 [R=301,L]
    Thanks for support.
  2. Mike

    Mike XenForo Developer Staff Member

    Is this the same data but moved to another directory?
  3. kankan

    kankan Active Member

    Hi Mike,
    Yes same data, just the folder change : /forums/ instead of /www/
  4. Mike

    Mike XenForo Developer Staff Member

    In that case, you just want to rename the www directory and put this in the root's .htaccess file:
    Redirect permanent /www http://example.com/forums
    Change the domain to fit yours. I believe that should suffice.
  5. kankan

    kankan Active Member

    Thank you
    I will try after my migration tasks and let you know.

Share This Page