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?
Put it right after RewriteEngine On
Got it to work and was able to export the thread IDs into excel, now I just need to some how format them in the required manner which I have no clue on how to do![]()
Seems like this method can't handle a lot of IDs?
I wouldn't be surprised.
Would a php version be more efficient and stable?
<xen:if is="{$forumId} == 1 || {$forumId} == 2 || {$forumId} == 3">
redirect the thread
</xen:if>
It's not done in the templates. PHP programming is required.
<?php
$node_id = current_node();
if ($node_id == 1 || $node_id == 3) {
how-would-I-redirect
}
?>
You could forward all threads/ requests to a PHP script that checks the ids. Or extend the threads route to check the ids before the request goes to the controller.
This whole thing is nasty, but you are asking the question so...
redirect 301 /threads/*.68/ http://mynewsite.net/threads/*.68/
RewriteRule ^threads/([^\.]+)\.(68)/(.*)$ http://mynewsite.net/threads/$1.$2/$3 [R=301,L]
Code:RewriteRule ^threads/([^\.]+)\.(68)/(.*)$ http://mynewsite.net/threads/$1.$2/$3 [R=301,L]
That should do it. The thread_id only occurs once.
RedirectMatch permanent ^/threads/(.*)\.550/(.*)$ http://myotherwebsite.com$0
But remember that method was causing my server to throw out errors.
We use essential cookies to make this site work, and optional cookies to enhance your experience.