1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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

Discussion in 'Add-on Releases [Archive]' started by Shadab, Oct 6, 2010.

  1. Shadab

    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.png

    / 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/
    japersonal, JulianD, sonnb and 36 others like this.
  2. Mythotical

    Mythotical Well-Known Member

    Great job, thanks.
    Shadab likes this.
  3. Verónica Muñoz

    Verónica Muñoz New Member

    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.
    Shadab likes this.
  4. Shadab

    Shadab Well-Known Member

    Thanks Steve, and Verónica.

    @Verónica: Sure! And in case you are using a custom url format for showthread or forumdisplay pages, you can upload your xml backup file here.
  5. RickM

    RickM Well-Known Member

    Looking good! Any chance you can release the script? Would make it much easier for everyone on vbSEO :)
  6. cmeinck

    cmeinck Well-Known Member

    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.
    HydraulicJack likes this.
  7. projectego

    projectego Active Member

    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*
    HydraulicJack likes this.
  8. Thomas P

    Thomas P Member

    How do you solve that?

    JulianD likes this.
  9. Shadab

    Shadab Well-Known Member

    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.

    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.
  10. Thomas P

    Thomas P Member

    Thanks
  11. siros

    siros Member

    Thank you for posting this.:)

    There should be a way to tag such a thread for feature reference.:p
  12. dmnkhhn

    dmnkhhn Active Member

    Thanks! I am anxious to see what it does with my vbseo configuration. :)
  13. Shadab

    Shadab Well-Known Member

    UPDATE 1:
    Updated the first post with a link to the tool & a screenie. :)

  14. dmnkhhn

    dmnkhhn Active Member

    Works like a charm, thank you very much! :)

    Attached Files:

  15. D.O.A.

    D.O.A. Well-Known Member

    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>

    Attached Files:

  16. Shadab

    Shadab Well-Known Member

    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:
    D.O.A. likes this.
  17. D.O.A.

    D.O.A. Well-Known Member

    Thank you for the help Shadab, all perfect now :)
    Shadab likes this.
  18. cmeinck

    cmeinck Well-Known Member

    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.
  19. Shadab

    Shadab Well-Known Member

    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.
    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.
  20. HydraulicJack

    HydraulicJack Well-Known Member

    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

Share This Page