I need to rewrite an url already rewritten by the CMS where I work. The fact is that it rewrites them badly and leaves them rather ugly.
The url I want to rewrite is:
http://whatever/foo/offer/?offer_id=1213/
The beauty url I want to have:
http://whatever/foo/offer/1213/
I've tried many things, but none of them works for me, like:
RewriteRule ^offer/(.*)?$ offer/offer_id=$1 [L,NC]
RewriteRule ^offer/(.*)?$ offer/?offer_id=$1 [QSA]
etc.
How should I do it? Should I fight with the plugin and try to edit it or is there a solution in .htacceess?