XF 2.1 vBSEO htaccess rules

MrCranky

Member
Hi All,

I have just purchased Xenforo to move away from vBulletin 4 and vBSEO for obvious reasons. I have tested the importer that works perfectly, but as expected, all my existing links throw a 404, there are some quite important ones I would like to maintain rather than just pull the plug and swap.

my install path for both vb and xf are at the root level of the domain so domain.com/

I would need to add a couple of rewrite rules to get some old links to still work, I don't really understand how the rewrite stuff works, could anyone shed some light or point me in the right direction or be willing to help me in any way?

So what I would like to do is get domain.com/FOLDER-NAME to goto domain.com/community/resources

The rest of the links I will just have to let google re-index, looking at the webmaster tools I only have 15 or so backlinks.
 
You can use redirect/rewrite rules in your .htaccess file to do all of this and recover (at least most of) your old indexed vBSEO links.

What was the format of your vBSEO links? Can you post an example? Some formats are easier than others to convert.
 
Sorry @MrCranky

I've been busy with a server migration and a corrupted database.

I will try to get to this today or tomorrow.

You posted your RewriteRule above but that just redirects to the new directory.

You will need something like this (assuming no SSL, i.e., https):

Code:
RewriteEngine On
#rewrite old vBSEO urls after vBSEO is disabled or uninstalled
RewriteCond %{HTTP_HOST} ^yourdomain.com/oldfolder/(.*)
#RewriteRule (.*) http://yourdomain.com/community/resources/$1 [R=301,NC,L]

But that isn't tested - just off the top of my head for now.
 
Back
Top Bottom