XF 2.1 Redirections of old vBulletin 3.x (and some with vBSEO) archive links

Hello all,

I have been long overdue in doing redirects and have them working for posts, threads, members and RSS (or any old links I can find on my old forums or a quick google), but one of the archive formats has me lost.

I am trying to redirect, for example:
http://www.osnn.net/archive/index.php?t-108488.html
to
http://www.osnn.net/threads/108488/

I have a similar archive format that has a / after index.php instead of ? and that is working correctly so:
http://www.osnn.net/archive/index.php/t-108488.html
correctly goes to
http://www.osnn.net/threads/108488/

Using this rule:
RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ /threads/$1/ [L,R=301]

But the index.php? is lost on me, I can't seem to escape it so this one does not work:
RewriteRule ^archive/index\.php\?t-([0-9]+)\.html$ /threads/$1/ [L,R=301]

Does anyone have any ideas for index.php? ?

These are all the ones I actually did get working

Code:
    #vBSEO Removal
    RewriteRule [^/]+/([0-9]+)-[^/]+\.html /showthread.php?t=$1 [L,R=301]
    #vBulletin3 Thread to Xenforo Thread Redirect
    RewriteCond %{QUERY_STRING} (^|&|\?)t=([0-9]+)($|&)
    RewriteRule ^showthread\.php$ /threads/%2/? [R=301,L]
    #vBulletin3 Post to Xenforo Post Redirect
    RewriteCond %{QUERY_STRING} (^|&|\?)p=([0-9]+)($|&)
    RewriteRule ^showpost\.php$ /posts/%2/? [R=301,L]
    RewriteCond %{QUERY_STRING} (^|&|\?)p=([0-9]+)($|&)
    RewriteRule ^showthread\.php$ /posts/%2/? [R=301,L]
    #vBulletin3 Forum to Xenforo Forum Redirect
    RewriteCond %{QUERY_STRING} (^|&|\?)f=([0-9]+)($|&)
    RewriteRule ^forumdisplay\.php$ /forums/%2/? [R=301,L]
    #vBulletin3 Member to Xenforo Member Redirect
    RewriteCond %{QUERY_STRING} (^|&|\?)userid=([0-9]+)($|&)
    RewriteRule ^member\.php$ /members/%2/? [R=301,L]
    #vBulletin3 RSS to Xenforo RSS Redirect
    RewriteRule ^external\.php$ /forums/-/index.rss? [R=301,L]
 
Last edited:
Top Bottom