Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How can you set up 301 redirects from an old phpbb board to the new vanilla topics?

edited April 2011 in Vanilla 2.0 - 2.8
I'm stuck at trying to forward the old phpbb posts that I imported, to their new equivalents.

Did anyone do this before? This is the first test line I set up (taken from another discussion on this forum) but I have no clue how to do the regex properly and how the structure of the vanilla links is set up

RewriteEngine on RewriteBase /forum/ RewriteRule ^viewtopic(.*)t=(\d*)&(.*) /vanilla/discussion/$2/ [R=301,L]

From what I understand, this will only set up forwarding to the discussion using the old ID of the post. What's the best way to set these up?

any help would be much appreciated...

Comments

  • Are you sure Vanilla doesn't do that automatically after an import? I know the vBulletin importer does... I would've thought the phpBB one worked too.
  • edited April 2011
    Are you sure Vanilla doesn't do that automatically after an import? I know the vBulletin importer does... I would've thought the phpBB one worked too.
    I don't think it does (unless I'm missing something?!)

    Here's an example:
    the old phpbb forum url http://www.mysite.com/forum/viewtopic.php?f=3&t=19019
    relates to the new vanilla discussion at http://www.mysite.com/vanilla/discussion/19019/thread-name

    The importer did retain the original post ids but in order to create a 301 redirect so that all the old phpbb links are forwarded to the new vanilla version, you'd have to create a few rules that know where the new content is. The importer that's bundled with the current version doesn't do that, does it?

    I'm not too fussed about the user profile links, just mainly forums, topics and posts. Everything else could just go back to the vanilla "index" page.

    EDIT: Also, in order to load the "thread-name", you'd have to check in the vanilla database since the phpbb link doesn't include that information. => a plain htaccess redirect might work but would not be ideal...

    maybe this type of redirect is the right way? http://vanillaforums.org/discussion/8666

    except that's for the old version and doesn't work with vanilla 2
Sign In or Register to comment.