Mike, you made my day with this answer.
@Jesse Take the red pill
Welcome to the Q&A Forum
Browse the forum for helpful insights and fresh discussions about all things SEO.
Job Title: Software Developer
Company: IT-Engelhardt
Favorite Thing about SEO
smart people everywhere!
Mike, you made my day with this answer.
@Jesse Take the red pill
Hey Mark,
did this work for you?
Would be happy to hear back.
In the meantime enjoy your weekend
Christoph
Hey Mark,
it is only 07:21 right now, but I updated my original answer.
Hope you still accept my premature answer 
Christoph
Hey Mark,
I should not answer questions in around 6 a.m. Sorry for that 
My example works only when you want to redirect from an old domain to a new one - or from http://www.domain.com to http://domain.com
If you want the links to be on the same domain, things get tricky quite fast. I'll deep dive into the documentation and be right back
Hey Mark,
Finally a question that I can answer (yay!)
I use the following code on my website:
<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteRule ^(.*)$ http://www.it-engelhardt.de/$1 [R=301]</ifmodule>
It basically takes every URL like http://itengelhardt.de/microconf-2013-hub-page/
and just redirects it (301 of course!) to http://www.it-engelhardt.de/microconf-2013-hub-page/
OK, hopefully this is the correct answer to your question:
**Assumptions I made: **
Then this is hopefully what you want:
RewriteCond %{QUERY_STRING} ns=catshow
RewriteCond %{QUERY_STRING} ref=([^&]+)
RewriteRule ^index.php /Category/%1? [R=301]
**What it does: **
4. the "?" at the end of "/Category/%1?" tells the server to throw away the original query string - this might not be desirable, if not: remove the '?'
5. the [R=301] tells the server to redirect using HTTP 301
Tested with: http://htaccess.madewithlove.be/
Mike, you made my day with this answer.
@Jesse Take the red pill
Hey Mark,
I should not answer questions in around 6 a.m. Sorry for that 
My example works only when you want to redirect from an old domain to a new one - or from http://www.domain.com to http://domain.com
If you want the links to be on the same domain, things get tricky quite fast. I'll deep dive into the documentation and be right back
I'm moonlighting a SaaS product to help you with linkbuilding - to be released in early 2014.