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

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.
 
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!
 
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?
 
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?

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
 
Back
Top Bottom