XF 2.3 How can I redirect all mybb links to XenForo?

The mybb URLs are thread-244733.html
You kept the IDs during the import, so have chatgpt create a 301 redirect code and put it in the hataccess file. This redirect should go from thread-244733.html to threads/105932/
 
The mybb URLs are thread-244733.html
You kept the IDs during the import, so have chatgpt create a 301 redirect code and put it in the hataccess file. This redirect should go from thread-244733.html to threads/105932/

Is this code for Nginx okay? I have Nginx.

Code:
# --- MyBB to XenForo 301 Redirects START ---
    
    # Redirect Threads & Posts
    location = /showthread.php {
        if ($arg_pid) {
            return 301 /posts/$arg_pid/;
        }
        if ($arg_tid) {
            return 301 /threads/$arg_tid/;
        }
    }

    # Redirect Forums/Categories
    location = /forumdisplay.php {
        if ($arg_fid) {
            return 301 /forums/$arg_fid/;
        }
    }

    # Redirect Member Profiles
    location = /member.php {
        if ($arg_action = "profile") {
            if ($arg_uid) {
                return 301 /members/$arg_uid/;
            }
        }
    }

    # Redirect Attachments
    location = /attachment.php {
        if ($arg_aid) {
            return 301 /attachments/$arg_aid/;
        }
    }
    
    # --- MyBB to XenForo 301 Redirects END ---
 
I have no idea, you can have chatgpt write it and put it in the hataccess file then try typing an old url and if it redirects it works, if it doesn't work ask chatgpt again.
 
@briansol
But do you think someone who makes a request like that knows how to program to modify a plugin made for vBulletin?
It's not mandatory to reply to every thread with random replies...
 
@lustbb that plugin is used to automatically redirect, but it's designed for vBulletin and doesn't work for other forums.
When you import a forum (smf, ipb, mybb, phpbb, etc.) into xenforo, the original forum IDs are retained, so unless you've merged multiple forums or migrated a forum into an existing one (with existing posts), you won't have any ID issues.
 
@lustbb that plugin is used to automatically redirect, but it's designed for vBulletin and doesn't work for other forums.
When you import a forum (smf, ipb, mybb, phpbb, etc.) into xenforo, the original forum IDs are retained, so unless you've merged multiple forums or migrated a forum into an existing one (with existing posts), you won't have any ID issues.
Thanks
 
and you think this answer is better?

Mine is a concrete response to a reply that didn't make sense just to increase one's message count. As I said, if someone knows enough programming to modify a plugin for another board (we're talking about writing/editing various code files), that doesn't make a discussion like that possible.
When replying, it's best to do so with a solution, not with a response that further complicates matters.
 
Back
Top Bottom