faeronsayn
Well-known member
How hard is it to import let's say a section of your current xenForo forum to a whole new xenForo forum? And only import users that have posts from that forum? Also would it be easy to redirect the URLs?
I am currently doing something similar...splitting up parts of a forum into their own stand-alone forums.
Right now I have a test forum that I am cleaning up. It contains all content and members. I plan on copying the database over to each new forum and deleting whatever I won't need for each particular forum. A lot of work, but it seems like the easiest route in my case.
Good luck!
Here are specific instructions for thread redirects after a XF -> IPB -> XF import:
http://xenforo.com/community/thread...-to-xenforo-with-redirects.29979/#post-344747
Then you can use similar queries to update the id maps for imported forums. The process is the same though.
It's unclear to me exactly what process you are using. But for the purpose of redirects I need specific examples of before and after links.
I was thinking maybe if it was possible to get all the thread IDs of the threads that were imported
That will be difficult to do "nicely". You will need to check the node_id for every thread before redirecting, and the node_id is not in the URL. You would have to get into the PHP code to do the check.
An exhaustive list of thread_ids would be an alternative to checking the node_id. How many threads total?
RewriteRule ^threads/[^\.]+\.(1|2|3|4|5|6|7|8|9)/(.*)$ http://www.example2.com/threads/$1/$2 [R=301,L]
Example of redirect with explicit list of threadids:
Rich (BB code):RewriteRule ^threads/[^\.]+\.(1|2|3|4|5|6|7|8|9)/(.*)$ http://www.example2.com/threads/$1/$2 [R=301,L]
Is there a way to output all thread id's in that manner?
SELECT thread_id
FROM xf_thread
WHERE node_id IN (1,2,3);
Example of redirect with explicit list of threadids:
Rich (BB code):RewriteRule ^threads/[^\.]+\.(1|2|3|4|5|6|7|8|9)/(.*)$ http://www.example2.com/threads/$1/$2 [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
#If you are having problems with the rewrite rules, remove the "#" from the
#line that begins "RewriteBase" below. You will also have to change the path
#of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo
#This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
RewriteRule ^threads/[^\.]+\.(37976|24569)/(.*)$ http://www.mynewdomain.com/threads/$1/$2 [R=301,L]
</IfModule>
We use essential cookies to make this site work, and optional cookies to enhance your experience.