vBSEO redirects

Majora

Member
Hello,
i switch from vbulletin 4 + vBSEO to xenForo. Now i want to redirect the old url's in the google index to the new xenForo URL's: http://www.google.de/#sclient=psy-a....,cf.osb&fp=2f285c08b7a2cb86&biw=1680&bih=946

I have used this script http://tools.geekpoint.net/xfseo/ and insert
Code:
RewriteEngine on
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]

to my .htaccess
but the URL's still not redirect me to the new URL's


Best regards,
Majora
 
Jake, I should mention, I'm going to put xenforo in the root when I have this ready.I see that I didn't have my forums numbered. I'm guessing I will need to do those one by one manually.

Thank you very much for this!
 

Add these rules to the top of the .htaccess file in your web root:

Code:
RewriteEngine On

RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /xenforo/index.php?threads/$1/ [R=301,L]

Or when you move XF to the root:

Code:
RewriteEngine On

RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /index.php?threads/$1/ [R=301,L]

And yes, you can't do a generic redirect for the forum URLs since they don't have ids. But threads are the important thing anyways.
 
Do I need to keep vbseo on the sever , and the redirects that are in the current htaccess or can I completely remove it and all vbulletin and use the htaccess that came with Xenforo?
 
Do I need to keep vbseo on the sever , and the redirects that are in the current htaccess or can I completely remove it and all vbulletin and use the htaccess that came with Xenforo?

vBSEO/vBulletin is no longer needed. Of course when you move XF to the root you will add the rules to the top of XF's own .htaccess file (in addition to XF's rules which should stay).
 
I'm looking to do something similar. I had vBSEO and now I've moved to Xenforo and want to redirect my old thread URLs.
Old Link
http://www.videogameinfo.net/forums/articles/facebook-buys-oculus-rift-2-billion-4472/

New Link

http://www.videogameinfo.net/forums/threads/facebook-buys-oculus-rift-for-2-billion.4472/

Basically, it's just lacking the .html end and the numbers appear at the end instead of at the start.

I don't have that much experience with writing htaccess stuff. I took a guess and thought maybe if I removed .html extension and replaced xenforo with forums it'd work

RewriteEngine On RewriteRule ^[^/]+/([0-9]+)-[^\.]+\$ /forums/threads/$1/ [R=301,L]

but it doesn't seem to be doing much, I'm guessing it's something minor like how the numbers appear at the start but I'm not exactly sure how to format it
 
Ingenious is correct. Those rewrite rules for vBSEO work in conjunction with these redirect scripts:

http://xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/

You need to upload those redirect scripts. The rewrites forward the old URLs to the redirect scripts which then do the actual redirect. Yes, those vB3 scripts work with vB4.

If you have trouble then I can take a look. Redirects can be a pain as there are several points of failure.
i have problem here. this work ok for vbseo thread urls but www.site.com/forums doesnt redirect to www.site.com (which is xf install while vb was in forums). gives 400 error

htaccess in /forums/

Code:
RewriteEngine on
RewriteRule ([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule ([\d]+)-.+.html showthread.php?t=$1 [NC,L]
 
@tsak76

To redirect site.com/forums to site.com/ you need to add this rule to the top of the .htaccess file in the /forums directory:

Code:
RewriteEngine On

RewriteRule ^(index\.php)?$ / [R=301,L]
 
I tested switching from vbulletin 3.8x + vBSEO to xenForo. Everything works fine.

The I tested vBSEO redirects. It works very nice for redirecting threads. But redirection to explicit postings in a thread (permalink) does not work. In other words: All internal or external Links to a special posting in a thread doesn't work and will instead link to the thread (first posting).

Code:
vBulletin URL: http://www.<domain>.com/outdoor-fitness/78-waldlaeufe.html#post15670
XenForo URL: http://www.<domain>.com/threads/waldläufe.78/#post15670
This would be correct: http://www.<domain>.com/threads/waldläufe.78/#post-15670

As you can see - there is a translation of the post-id in XenForo, but it doesn't work. It goes always to the first posting in the thread. It seems there is a minus ("-") missing between "post" and posting-number.

Does it work in your forums?


I use these additional rewrite rules =>

Code:
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]

Would perhaps something like this handle the positioning to threads? =>

Code:
RewriteRule [^/]+/[\d]+.+.html#post([\d]) showpost.php?p=$1 [NC,L]
 
Last edited:
Thank you!

Any other possible technique to translate the old vBulletin URLs which links to a certain posting in a thread? Or workarounds?
Or is this generally impossible?
 
you should head over to freelancer and give them a go. they helped me with a fast fix however, I was happy with just being redirected to the thread and not the specific post.

I am sure that this could also be achieved using php.(y)
 
Thank you!

Any other possible technique to translate the old vBulletin URLs which links to a certain posting in a thread? Or workarounds?
Or is this generally impossible?

Javascript is a possibility, but that would only possibly work for regular users visiting those post anchors. Search engines would not respond to js redirects which mostly defeats the purpose of the redirect.
 
Top Bottom