lucy24 - 7:54 am on May 10, 2012 (gmt 0)
You need to look at your existing rewrites. Any new rewrites have to add to what's there, not create a conflict.
what i need is a rewrite rule so
http://www.example.com/fr/corporate/news points to http://www.example.com/corporate/news/?lang=fr
i tried few url rewrite rules but it generates 404 error category not found page. i believe it looks for thr fr folder or a category called fr.
Can we assume for the sake of discussion that when you say "points to" you mean "serves content from"? If so, it has to be set up as a Rewrite (without protocol and domain), not a Redirect.
If the server is looking for a /fr/ directory, then the rewrite/redirect isn't happening.
Simple test: Set up your ordinary RewriteRule, but add the [R=301] flag. Now your browser's address bar will tell you if the rule has executed. This is independent of whether the target URL really exists. Even if you land on your 404 page, the address bar will say where the browser "thinks" it is.
go to the real location
and do stuff with the query "lang=fr"
We really need to see what RewriteRules you have tried. And probably also the other Rewrites, because everything has to happen in a particular order.