• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 vBulletin archive/index.php and tags redirects

#1
I recently switched to XF and am using the following redirect package:

https://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/

Most redirects are working fine. However, there are a few main areas that I'm still trying to figure out how to redirect:

archive/index.php redirects (archived threads)
tags.php?tag= (thread tags)

I've searched here on the forum but haven't found a solution yet. Can anyone assist?

Thank you.
 

Brogan

XenForo moderator
Staff member
#2
For any URLs not covered by the script, or which don't have an equivalent in XenForo, you will have to add manual rewrites to the .htaccess file.
 

Slavik

XenForo moderator
Staff member
#3
These should help with your archived threads:

Code:
RewriteRule archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/threads/$1 [R=301,L]
RewriteRule archive/index\.php/f-([0-9]+)\.html$ http://yoursite.com/forums/$1 [R=301,L]
 
#4
These should help with your archived threads:

Code:
RewriteRule archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/threads/$1 [R=301,L]
RewriteRule archive/index\.php/f-([0-9]+)\.html$ http://yoursite.com/forums/$1 [R=301,L]
Thank you very much for the help. The following ended up working for the /t threads:
Code:
RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/index.php?threads/$1/ [R=301,L]
or
RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ /index.php?threads/$1/ [R=301,L]
And this worked for the /f threads:
Code:
RewriteRule ^archive/index\.php/f-([0-9]+)\.html$ http://yoursite.com/forums/$1 [R=301,L]
or
RewriteRule ^archive/index\.php/f-([0-9]+)\.html$ /forums/$1 [R=301,L]
Thanks again. I really appreciate the help.
 
Last edited:
#9
RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/index.php?threads/$1/ [R=301,L]
or
RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ /index.php?threads/$1/ [R=301,L]
If I weren't running on 11 hours of sleep since Friday morning I could do this better, but...

Is anyone capable of translating this into something that would work with Nginx? I'm pretty sure this is the rule I need to until Google reindexes my site (4 pages reindexed after submitting my sitemap 24 hours ago. Wheee!)
 
Last edited: