title: vBulletin To bbPress Conversion - How Can I Redirect The Old URLs To The New Ones?
body: <p>I converted my vbulletin forum to bbpress and everything works fine except the redirection of the old urls part.</p>
  
  <p>I want to redirect old vbulletin urls to the new bbpress ones using .htaccess but i have no idea how to do it. I’m still new to URL redirection.</p>
  
  <p><strong>Old vBulletin URL:</strong></p>
  
  <p><a href="http://www.forum.site.com/showthread.php?80-post-title" rel="nofollow">http://www.forum.site.com/showthread.php?80-post-title</a></p>
  
  <p><strong>New bbPress URL:</strong></p>
  
  <p><a href="http://www.site.com/forums/topic/post-title" rel="nofollow">http://www.site.com/forums/topic/post-title</a></p>
  
  <p>Can anyone help me? I would really appreciate it.</p>
  
  <p>UPDATED: Here are the contents of my .htaccess file.</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{QUERY_STRING} ^[0-9]+-([^&amp;]+)
  RewriteRule ^/?showthread\.php$ http://www.site.com/forums/topic/%1 [L,R=301]
  
  RewriteEngine on
  Options +FollowSymlinks -MultiViews
  
  # handles http redirect
  
  RewriteCond %{SERVER_PORT} =80
  RewriteCond %{HTTP_HOST} ^forum\.site\.com$ [NC] 
  RewriteRule ^/?(.*)$ http://www.site.com/discussions [R=301,L,QSA,NE]
  
  # handles https redirect
  RewriteCond %{SERVER_PORT} =443
  RewriteCond %{HTTP_HOST} ^forum\.site\.com$ [NC] 
  RewriteRule ^/?(.*)$ https://www.site.com/discussions [R=301,L,QSA,NE]
  </code></pre>