• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Redirects for vBSEO'd URLs

Shadab

Well-known member
UPDATE:

I've uploaded the script at: http://tools.geekpoint.net/xfseo/, with the ability to upload your own XML backup file and have the tool generate rewrite/redirect rules for you (in case you are not using a preset). Let me know if you encounter any errors while using the rewrite rules or the script itself.

vbseo-to-vbulletin-url-generator.webp

/ End Update
######################################################################

If you had installed vBSEO for your vBulletin forum and want to redirect all those rewritten links to the corresponding XenForo links, there's no single way to do that unfortunately. The rewrite codes all depend on what url formats you were using. vBSEO ships with 7 presets by default, for which the rewrite rules can be instantly generated.

Credits:
» Got the idea from Mike's post.

Links:
» http://www.vbseo.com/blogs/mert-goekceimam/how-uninstall-vbseo-238/
» http://xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/
» http://xenforo.com/community/threads/xenseo-vbseo.4505/
» http://tools.geekpoint.net/xfseo/
 
That looks great. One of my major concerns about switching from vBulletin is actually the fact that vBSEO is not compatible with XF, so this is great.

I can't test it just yet but will totally let you know how it goes once I can do it.
 
Thanks Steve, and Voyager-S.

@Voyager-S.: Sure! And in case you are using a custom url format for showthread or forumdisplay pages, you can upload your xml backup file here.
 
Last edited by a moderator:
Looking good! Any chance you can release the script? Would make it much easier for everyone on vbSEO :)
 
I've got some customized URL's. Hoping for a script that will ease the move. For now, I'm holding off on all my migrations in hopes of a smooth move from vBSEO URL's to XF URL's and the vB4 migrator from XF.
 
I'll try this out now. I'm a little anxious about the whole import thing so I'm hoping the localhost testing thing will work well before attempting this on my main boards. Fortunately, I've only got the one instance of vBSEO to worry about. *fingers crossed*
 
How do you solve that?

Keeping the URLs identical is a problem. Significantly, the IDs are going to change on an import. Actually, if you try to keep the URLs identical, it's going to be hard to redirect them as you won't know what's an old link and what's a new link.
 
Looking good! Any chance you can release the script? Would make it much easier for everyone on vbSEO :)
Yes, I'll release it. Although I'll host the tool on my domain as well, so it would be as simple as uploading your xml file and copy-pasting the output generated.

How do you solve that?
Actually I don't. The given rewrite rules transparently call showthread.php and forumdisplay.php (tried anyone?), and Kier's script takes care of the actual redirect to the correct XF URLs.
 
Works like a charm, thank you very much! :)
 

Attachments

  • Bildschirmfoto 2010-10-10 um 09.46.59.webp
    Bildschirmfoto 2010-10-10 um 09.46.59.webp
    51.3 KB · Views: 152
I've made a few customizations that I'm regretting :( so it's 500 internal server errors for me without it all(?).

Code:
RewriteEngine on
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC, L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC, L]
<IfModule mod_rewrite.c>
	RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^.*$ - [NC,L]
	RewriteRule ^(data|js|styles|install) - [NC,L]
	RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 

Attachments

  • Capfffture.webp
    Capfffture.webp
    39.6 KB · Views: 97
  • vbseo_all.zip
    vbseo_all.zip
    5.2 KB · Views: 32
UPDATE 2:

Replaced all instances of [NC, L] with [NC,L] in the first post.
And updated the script accordingly, as well.

That extra whitespace after the comma was causing apache to go crazy. :oops:
 
Just curious as to the entire process of migrating from a vBSEO site to XF. I assume it's the following:
  • Export your vBSEO URL's.
  • Generate rewrites with the tool posted by Shadab
  • Migrate your forum to XF
  • Place .htaccess using generated rewrites from Shadab's tool with showthread.php and forumdisplay.php (aren't these vBulletin files?)
  • Use Kier's vB migration .htaccess?
Q: When migrating, do you have install XF in the same directory as vBulletin?

Any input would be helpful.
 
Just curious as to the entire process of migrating from a vBSEO site to XF. I assume it's the following:
First 3 steps are correct. After that,
  • Put showthread.php, forumdisplay.php & showpost.php scripts, provided by Kier in this thread (not the vBulletin ones), in the same location where you had installed vBulletin.

  • Place the generated rewrite rules in the same directory, either in a .htaccess file or directly in your httpd conf.
Q: When migrating, do you have install XF in the same directory as vBulletin?
No that's not a requirement. But installing XF in a different directory will prevent the URLs from conflicting in case your vbseo'd urls are similar to the current xf format. See this post for a fix.
 
Thanks very much Shadab. Would you also be willing to post an example link that would be generated by each of the 7 rewrite rules, for those of us not yet adept at reading the runes?
MANY Thanks!
HJ
 
Top Bottom