title: Redirect joomla url's to wordpress
body: <p>I moved an ex-site based on joomla to wordpress. Import worked fine but the problem is that the old links don't work anymore.
  Because there is only 50 or so articles, i thought will be a good idea to put a rule for each post (in .htaccess).</p>
  
  <p>Well... Not always things are like you want, so redirects dont work at all :(</p>
  
  <p>Old joomla links looks like this:</p>
  
  <pre><code>http://site.com/index.php?option=com_content&amp;task=view&amp;id=49&amp;Itemid=29
  http://site.com/index.php?option=com_content&amp;task=view&amp;id=42&amp;Itemid=29
  http://site.com/index.php?option=com_content&amp;task=view&amp;id=68&amp;Itemid=29
  </code></pre>
  
  <p>And need to be translated to:</p>
  
  <pre><code>http://site.com/?p=23
  http://site.com/?p=24
  http://site.com/?p=25
  </code></pre>
  
  <ul>
  <li><p>basically no relations between old and new links, so i don't think a regex will help</p></li>
  <li><p>both old and new site are on the same domain</p></li>
  </ul>
  
  <p>Ok, the problem is that any rule i've tried (and i tried a LOT!), none worked. in few cases i get 500 error, but most of times the redirect didn't work.</p>
  
  <p>So, any of you guys had same problem? I don't necessary want to have nice permalinks, but if i can, that will be better. The problem is that i have many backlinks to old url's and i don't want to loose them.</p>
  
  <p>Thanks a lot guys!</p>