Help Requested Redirects don't work (and some tips for known XF bugs)

@fathertime, I've discovered a (minor) issue with really old links, e.g. if a thread from, say, 10 years ago has a link to a thread.

Here is a broken link:

http://assemblergames.com/forums/showthread.php?t=5156

The topic is still there, at:

http://assemblergames.com/l/threads/snes-cd-rom-faq.5156/

to make life easier, it works as:

http://assemblergames.com/l/threads/5156/

Is it possible to catch those without messing the current redirects up? ;)
Update broke redirects again.

What I have right now:

Code:
    #Optional - comment out the below rule to do a catchall redirect for any
    #requests for the old /forums/ and just redirect to the new home page /l/
    #RewriteRule ^forums([a-z/.]*) /l/ [R=301,L]
  
    #redirect old member page URLs to new site
    RewriteCond %{QUERY_STRING} ^([0-9]+)(.*)$
    RewriteRule ^forums/member.php$ /l/members/%2\.%1\/? [R=301,L]
  
    #redirect old post URLs to new site
    RewriteCond %{QUERY_STRING} ^([0-9]+)(.*)$
    RewriteRule ^forums/showthread.php$ /l/threads/%2\.%1\/? [R=301,L]
What happens now is a "file not found" message, not even a 404.

Any help is appreciated.

Original thread: https://assemblergames.com/threads/redirects-dont-work-and-some-tips-for-known-xf-bugs.56672/