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

XF 1.2 Redirect URL's since vB4 and vBSEO

Discussion in 'Installation, Upgrade, and Import Support' started by Luis, Oct 30, 2013.

  1. Luis

    Luis Well-Known Member

    I've converted a vB4 forum with vBSEO 3.6 after being hacked 3 times in a month.

    Now I do not understand how to rewrite the URL's, even after reading a few threads about this and do some tests with no success.

    XenForo software is on the same route as the old vB4 (www.mydomain.com/foro).

    I have the configuration file of the vBSEO URL's if needed. The new server use Nginx

    Please, someone is kind enough to help me.

    Soorry for my english, I am using Google translator to write.

  2. Jeremy

    Jeremy Well-Known Member

    Please provide one of the original URLs and the destination URLs and we can provide you with the proper redirect code.
  3. Luis

    Luis Well-Known Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Add to the top of the .htaccess file in your /foro directory:

    RewriteEngine On
    RewriteRule ^[^/]+/.+-([0-9]+)/$ /foro/threads/$1/ [R=301,L]
    RewriteRule ^members/.+-([0-9]+)/$ /foro/members/$1/ [R=301,L]
    RewriteRule ^[^/]+-([0-9]+)/$ /foro/forums/$1/ [R=301,L]
    That should do it.
    Luis likes this.
  5. Luis

    Luis Well-Known Member

    Thank you very much Jake

    Sorry for not reply earlier but I could not test this until today.

    This is working for me.

    Regards, Luis.

Share This Page