I have mod-rewrite working ok on an apache 2.2, but the problem is that it doesn't work "backwards".
I have these rules that makes SEO friendly urls work:
RewriteRule ^sjg/([^/]+)/([0-9]+)/?$ /showimage.php?model=$1&image=$2 [L]
RewriteRule ^sjg/([^/]+)/page/([0-9]+)/?$ /model.php?model=$1&page=$2 [L]
RewriteRule ^sjg/([^/]+)/?$ /model.php?model=$1 [L]
But the "old" urls still work i.e. website.com/showimage.php?model=abc&image=123
I would like to rewrite those urls if they are loaded directly or from old links in order to have only one url-scheme working.