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

XF 1.2 After moving to a directory, how to redirect indexed content?

Discussion in 'Installation, Upgrade, and Import Support' started by JoseFebus, Jan 16, 2014.

  1. JoseFebus

    JoseFebus Member

    Hi,

    I am planing to move XenForo to a directory and have Wordpress as the home page to host the articles. Is there a way to redirect the already indexed content to the new directory?

    I have in the forum several areas with articles and plan to copy that content to Wordpress and leave XenForo with the discussions.
     
  2. LPH

    LPH Well-Known Member

  3. Liam W

    Liam W Well-Known Member

    You can use a simple redirect to redirect pages to the new directory.

    .htaccess in the root directory:

    Code:
    RewriteCond %{REQUEST_URI} !-f
    RewriteRule ^(.*)$ <newdirectory>/$1
    
    Note: Untested... Might now work!
     
  4. JoseFebus

    JoseFebus Member

    Thanks, but my concern is to redirect only requests from xenforo links. I will install WP in the root, so I don't want ALL request to be redirected.

    It is OK to create a directory called "threads" and put a .htaccess to redirect to the new directory?
     
  5. Liam W

    Liam W Well-Known Member

    That would've only done xenforo links.

    The htaccess file would have to be in the old directory, for it to work. The one I gave checks if the file exists in the current directory, if it doesn't it redirects to xenForo.

    Someone may be able to come up with a better one...

    Liam
     

Share This Page