My Web addresses experienced from getting string placed inside them in some way. I believe there can be a bug somewhere but anyway I wish to permanently redirect URL such as this:

http://www.example.com/prikazi.php?ktg=1...Bankarske...&firma=Obnova+d.o.o.

to normalcy URL:

http://www.example.com/prikazi.php?ktg=1&firma=Obnova+d.o.o.

Now, I understand that my Web addresses aren't perfect and that i do plan at some point to ensure they are pretty but for the time being this issue should be solved since it makes negative effect on my ranking.

Like a reference, here's a good example that actually works during my atmosphere so perhaps you can test to regulate individuals (since you may notice, I began testing pretty Web addresses, and that i have 150 of these now, because i made the decision to include them progressively. Which means this below does the secret of redirecting of individuals which had recently been made pretty):

    RewriteCond %{THE_REQUEST} ^[A-Z]+\ /prikazi\.php\?(([^&\ ]+&)*)firma=Eko\-Invest\+d.o.o.((&[^&\ ]+)*)\ HTTP/
RewriteRule ^prikazi\.php$ http://www.example.com/prikazi.php?%1firma=eko-invest-doo-sanski-most%3 [R=301,L]